Constructor Summary
| Public Constructor | ||
| public |
constructor(model: object, uploader: MediaUploader) |
|
Member Summary
| Public Members | ||
| public get |
allowedMimeTypes: Array<string> Allowed mime types for upload |
source |
| public get |
formValues: * |
source |
| public get |
maxFileSize: number Max file size for upload |
source |
| public get |
uploader: MediaUploader: * File uploader. |
source |
| public get |
value: string Uploaded file id. |
source |
| public get |
customQuestion: CustomQuestion Custom question settings (Inherited from QuestionBase.) |
source |
| public get |
Is default Confirmit rendering disabled? (Inherited from QuestionBase.) |
source |
| public get |
entityId: string Question entity id. (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 |
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 |
category: string Question category. (Inherited from Question.) |
source |
| public get |
Fired on answer changes. (Inherited from Question.) |
source |
| public get |
The flag shows if user in CATI reviewing mode. (Inherited from Question.) |
source |
| public get |
Is it read-only question. (Inherited from Question.) |
source |
| public get |
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 |
Method Summary
| Public Methods | ||
| public |
Clear question values. |
source |
| public |
setValue(fileId: string) Set answer value. |
source |
| 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 Constructors
public constructor(model: object, uploader: MediaUploader) source
Create instance.
Override:
Question#constructorParams:
| Name | Type | Attribute | Description |
| model | object | Raw question model. |
|
| uploader | MediaUploader | File uploader |
Public Members
public get formValues: * source
Object with values representing question answer for server.
Override:
QuestionBase#formValuespublic get uploader: MediaUploader: * source
File uploader. Using to help you to upload file on server during web interview.
Return:
| MediaUploader |
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 Methods
public setValue(fileId: string) source
Set answer value.
Params:
| Name | Type | Attribute | Description |
| fileId | string | File ID. |
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. |
