SearchableSingleQuestion
Mixin Extends:
Constructor Summary
| Public Constructor | ||
| public | constructor(model: object, searchableAnswerListService: SearchableAnswerListService) Create instance. | |
Member Summary
| Public Members | ||
| public get | customQuestion: CustomQuestion Custom question settings (Inherited from QuestionBase.) | source | 
| public get | customRendering: boolean Is default Confirmit rendering disabled? (Inherited from QuestionBase.) | source | 
| public get | formValues: object Object with values representing question answer for server. (Inherited from QuestionBase.) | source | 
| public get | id: string Question id. (Inherited from QuestionBase.) | source | 
| public get | instruction: string Question instruction. (Inherited from QuestionBase.) | source | 
| public get | isRtl: bool Is right to left language (Inherited from QuestionBase.) | source | 
| public get | text: string Question text. (Inherited from QuestionBase.) | source | 
| public get | title: string Question title. (Inherited from QuestionBase.) | source | 
| public get | triggeredQuestions: Array Array of triggered questions. (Inherited from QuestionBase.) | source | 
| public get | type: string Question type. (Inherited from QuestionBase.) | source | 
| public get | allowValidateOnChange: boolean Get allow auto re-validation on change value. (Inherited from Question.) | source | 
| public set | allowValidateOnChange(value: boolean) Set allow auto re-validation on change value. (Inherited from Question.) | source | 
| public get | Fired on answer changes. (Inherited from Question.) | source | 
| public get | readOnly: boolean Is it read-only question. (Inherited from Question.) | source | 
| public get | required: boolean Is question required. (Inherited from Question.) | source | 
| public get | (Inherited from Question.) | source | 
| public get | Fired on question validation complete. (Inherited from Question.) | source | 
| public get | Fired on question validation. (Inherited from Question.) | source | 
| public get | answerGroups: HeadGroup[] The array of answer groups. (Inherited from QuestionWithAnswers.) | source | 
| public get | The array of answers. (Inherited from QuestionWithAnswers.) | source | 
| public get | answerButtons: boolean Is it answer buttons. (Inherited from SingleQuestion.) | source | 
| public get | defaultValue: string The default answer code applied to a question. (Inherited from SingleQuestion.) | source | 
| public get | dropdown: boolean Is it dropdown. (Inherited from SingleQuestion.) | source | 
| public get | formValues: * (Inherited from SingleQuestion.) | source | 
| public get | layoutColumns: number Number of columns for answers placement. (Inherited from SingleQuestion.) | source | 
| public get | layoutRows: number Number of rows for answers placement. (Inherited from SingleQuestion.) | source | 
| public get | otherValues: object 
 (Inherited from SingleQuestion.) | source | 
| public get | refusedValue: string The default answer code applied to a question. (Inherited from SingleQuestion.) | source | 
| public get | slider: boolean Is it slider. (Inherited from SingleQuestion.) | source | 
| public get | sliderIsVertical: boolean Is slider vertical. (Inherited from SingleQuestion.) | source | 
| public get | value: string Selected value. (Inherited from SingleQuestion.) | source | 
Method Summary
| Public Methods | ||
| public | validate(raiseValidationCompleteEvent: boolean, validationRuleFilter: function): QuestionValidationResult Perform question validation (Inherited from QuestionBase.) | source | 
| public | Clear question values. (Inherited from Question.) | source | 
| public | validate(raiseValidationCompleteEvent: boolean, validationRuleFilter: function): QuestionValidationResult Perform question validation. (Inherited from Question.) | source | 
| public | Get answer by code. (Inherited from QuestionWithAnswers.) | source | 
| public | getAnswerGroup(code: string): HeadGroup Get answer group by code. (Inherited from QuestionWithAnswers.) | source | 
| public | getAnswers(codes: string[]): Answer[] Get answers array by codes array. (Inherited from QuestionWithAnswers.) | source | 
| public | Clear question values. (Inherited from SingleQuestion.) | source | 
| public | setOtherValue(answerCode: string, otherValue: string) Set other answer value. (Inherited from SingleQuestion.) | source | 
| public | setValue(value: string) Answer code, optional other value. (Inherited from SingleQuestion.) | source | 
Public Constructors
public constructor(model: object, searchableAnswerListService: SearchableAnswerListService) source
Create instance.
Override:
SingleQuestion#constructorParams:
| Name | Type | Attribute | Description | 
| model | object | The instance of the model. | |
| searchableAnswerListService | SearchableAnswerListService | searchable answer list service. | 
Public Members
public set allowValidateOnChange(value: boolean) source
Set allow auto re-validation on change value.
public get triggeredQuestions: * source
Array of triggered questions.
Override:
QuestionBase#triggeredQuestionspublic get validationCompleteEvent: Event source
Fired on question validation complete. Use to implement custom error handling.
public get validationEvent: Event source
Fired on question validation. Use to implement custom validation logic.
public get defaultValue: string source
The default answer code applied to a question. CATI or CAPI interviewer can use the Default button or keyboard shortcut to select the default answer.
public get formValues: * source
Object with values representing question answer for server.
Override:
QuestionBase#formValuespublic get refusedValue: string source
The default answer code applied to a question. CATI or CAPI interviewer can use the Default button or keyboard shortcut to select the default answer.
Public Methods
public validate(raiseValidationCompleteEvent: boolean, validationRuleFilter: function): QuestionValidationResult source
Perform question validation
Params:
| Name | Type | Attribute | Description | 
| raiseValidationCompleteEvent | boolean | 
 | Raise validationComplete event if true. | 
| validationRuleFilter | function | 
 | Custom filter function to apply specific validation rules only. | 
public validate(raiseValidationCompleteEvent: boolean, validationRuleFilter: function): QuestionValidationResult source
Perform question validation.
Override:
QuestionBase#validateParams:
| Name | Type | Attribute | Description | 
| raiseValidationCompleteEvent | boolean | 
 | Raise validationComplete event if true. | 
| validationRuleFilter | function | 
 | Custom filter function to apply specific validation rules only. | 
public getAnswer(code: string): Answer source
Get answer by code.
Params:
| Name | Type | Attribute | Description | 
| code | string | Answer code. | 
public getAnswerGroup(code: string): HeadGroup source
Get answer group by code.
Params:
| Name | Type | Attribute | Description | 
| code | string | Group code. | 
Return:
| HeadGroup | 
public getAnswers(codes: string[]): Answer[] source
Get answers array by codes array.
Params:
| Name | Type | Attribute | Description | 
| codes | string[] | Array of answer codes. | 
public setOtherValue(answerCode: string, otherValue: string) source
Set other answer value.
Params:
| Name | Type | Attribute | Description | 
| answerCode | string | Answer code. | |
| otherValue | string | Other value. | 
public setValue(value: string) source
Answer code, optional other value.
Params:
| Name | Type | Attribute | Description | 
| value | string | Answer code. | 

