### File

`src/group/fieldset.model.ts`

### Extends

`Group`

### Index

###### Methods
Public getQuestionByName

### Constructor

`constructor(code: string, description: string, questions: Question[])`
Defined in src/group/fieldset.model.ts:4
Parameters :
Name | Type | Optional | Description
code | `string` |  |
description | `string` |  |
questions | `Question[]` |  |

### Methods

Public getQuestionByName
`getQuestionByName(name: string)`
Defined in src/group/fieldset.model.ts:14
Parameters :
Name | Type | Optional | Description
name | `string` |  |
Returns : `Question<any>`

    import { Group, GroupType } from '.';
    import { Question } from '../question';

    export class Fieldset extends Group<Question<any>[]> {

      public constructor(
        code: string,
        description: string,
        questions: Question<any>[]
      ) {
        super(code, description, GroupType.FIELDSET, questions);
      }

      public getQuestionByName(name: string): Question<any> {
        for (const question of this.questions) {
          if (question.name === name) {
            return question;
          }
        }
      }
    }

# results matching ""

# No results matching ""