QuestionBase
Direct Subclass:
Indirect Subclass:
A base class for Question
Constructor Summary
Public Constructor | ||
public |
constructor(model: object) Create instance. |
Member Summary
Public Members | ||
public get |
customQuestion: CustomQuestion Custom question settings |
source |
public get |
customRendering: boolean Is default Confirmit rendering disabled? |
source |
public get |
formValues: object Object with values representing question answer for server. |
source |
public get |
id: string Question id. |
source |
public get |
instruction: string Question instruction. |
source |
public get |
isRtl: bool Is right to left language |
source |
public get |
text: string Question text. |
source |
public get |
title: string Question title. |
source |
public get |
triggeredQuestions: Array Array of triggered questions. |
source |
public get |
type: string Question type. |
source |
Method Summary
Public Methods | ||
public |
validate(raiseValidationCompleteEvent: boolean, validationRuleFilter: function): QuestionValidationResult Perform question validation |
source |
Public Constructors
public constructor(model: object) source
Create instance.
Params:
Name | Type | Attribute | Description |
model | object | The instance of the model. |
Public Members
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. |