### File

`src/question/choice.model.ts`

### Extends

`Question`

### Index

###### Properties
Public defaultOption Public options

### Constructor

`constructor(name: string, description: string, type: QuestionType, dependencies: Dependency[], answer: Answer | string, validations: Validation[], disabled: boolean, options: [] | [], defaultOption: string)`
Defined in src/question/choice.model.ts:4
Parameters :
Name | Type | Optional | Description
name | `string` |  |
description | `string` |  |
type | `QuestionType` |  |
dependencies | `Dependency[]` |  |
answer | `Answer | string` |  |
validations | `Validation[]` |  |
disabled | `boolean` |  |
options | `[] | []` |  |
defaultOption | `string` |  |

### Properties

Public defaultOption
`defaultOption: `string``
Type : `string`
Defined in src/question/choice.model.ts:15

Public options
`options: `[] | []``
Type : `[] | []`
Defined in src/question/choice.model.ts:14

    import { Answer, Dependency, Option, Question, QuestionType } from '.';
    import { Validation } from '../validation';

    export abstract class Choice extends Question<string> {

      public constructor(
        name: string,
        description: string,
        type: QuestionType,
        dependencies: Dependency[] = [],
        answer: Answer<string> | string = null,
        validations: Validation[] = [],
        disabled: boolean = false,
        public options: Option[] | string[] = [],
        public defaultOption: string = null
      ) {
        super(name, description, type, dependencies, answer, validations, disabled);
      }
    }

# results matching ""

# No results matching ""