|
Make a clone of the existing object. Create a new object of the same type and load all properties into it.
- Type:
-
() => Base
- Implemented in:
-
Base
|
|
Load object properties and elements. It doesn't reset properties that was changed before and they are not defined in the json parameter.
- Type:
-
(json: any) => void
- Parameters:
-
json, type: any
, the object JSON definition
- Implemented in:
-
Base
- See also:
-
toJSON
|
|
Returns the serializable property that belongs to this instance by property name. It returns null if the property is not exists.
- Type:
-
(propName: string) => JsonObjectProperty
- Parameters:
-
propName, type: string
, property name
- Implemented in:
-
Base
|
|
Returns the property value by name
- Type:
-
(name: string, defaultValue?: any) => any
- Parameters:
-
name, type: string
, property name
defaultValue, type: any
- Implemented in:
-
Base
|
|
Returns the element template name without prefix. Typically it equals to getType().
- Type:
-
() => string
- Implemented in:
-
Base
- See also:
-
getType
|
|
Returns the question type.
Possible values:
- Type:
-
() => string
- Implemented in:
-
Base
|
|
Question, Panel and Page description. It renders under element title by using smaller font. Unlike the question title, description can be empty.
Please note, this property is hidden for questions without input, for example html question.
- Type:
-
boolean readonly
- Implemented in:
-
SurveyElementCore
- See also:
-
title
|
|
Returns true if the object is inluded into survey, otherwise returns false.
- Type:
-
boolean readonly
- Implemented in:
-
Base
|
|
Use this method to find out if the current instance is of the given typeName or inherited from it.
- Type:
-
(typeName: string) => boolean
- Parameters:
-
typeName, type: string
, One of the values listed in the [getType()](https://surveyjs.io/Documentation/Library?id=surveymodel#getType) description.
- Implemented in:
-
Base
- See also:
-
getType
|
|
Returns true if the question in design mode right now.
- Type:
-
boolean readonly
- Implemented in:
-
Base
|
|
Returns true if the object is loading from Json at the current moment.
- Type:
-
boolean readonly
- Implemented in:
-
Base
|
|
Returns true if a value undefined, null, empty string or empty array.
- Type:
-
(value: any, trimString?: boolean) => boolean
- Parameters:
-
value, type: any
trimString, type: boolean
, a boolean parameter, default value true. If true then it trims the string and functions returns true for a string that contains white spaces only.
- Implemented in:
-
Base
|
|
Event that raised on changing property of the ItemValue object.
sender - the object that owns the property
options.propertyName - the property name to which ItemValue array is belong. It can be "choices" for dropdown question
options.obj - the instance of ItemValue object which property has been changed
options.name - the property of ItemObject that has been changed
options.oldValue - old value
options.newValue - new value
- Type:
-
Event<(sender: Base, options: any) => any, any>
- Implemented in:
-
Base
|
|
Event that raise on property change of the sender object
sender - the object that owns the property
options.name - the property name that has been changed
options.oldValue - old value. Please note, it equals to options.newValue if property is an array
options.newValue - new value.
- Type:
-
EventBase<Base>
- Implemented in:
-
Base
|
|
Register a function that will be called on a property value changed from the names list.
- Type:
-
(names: any, func: any, key?: string) => void
- Parameters:
-
names, type: any
, the list of properties names
func, type: any
, the function with no parameters that will be called on property changed.
key, type: string
, an optional parameter. If there is already a registered function for this property with the same key, it will be overwritten.
- Implemented in:
-
Base
|
|
Register a function that will be called on a property value changed.
- Type:
-
(name: string, func: any, key?: string) => void
- Parameters:
-
name, type: string
, the property name
func, type: any
, the function with no parameters that will be called on property changed.
key, type: string
, an optional parameter. If there is already a registered function for this property with the same key, it will be overwritten.
- Implemented in:
-
Base
|
|
- Type:
-
(name: string, val: any) => void
- Parameters:
-
name, type: string
, property name
val, type: any
, new property value
- Implemented in:
-
Base
|
|
Question, Panel, Page and Survey title. If page and panel is empty then they are not rendered.
Question renders question name if the title is empty. Use survey questionTitleTemplate property to change the title question rendering.
- Type:
-
string writable
- Implemented in:
-
SurveyElementCore
- See also:
-
SurveyModel.questionTitleTemplate
|
|
Deserialized the current object into JSON
- Type:
-
() => any
- Implemented in:
-
Base
- See also:
-
fromJSON
|
|
Unregister notification on property value changed for all properties in the names list.
- Type:
-
(names: any, key?: string) => void
- Parameters:
-
names, type: any
, the list of properties names
key, type: string
, the key with which you have registered the notification for this property. It can be null.
- Implemented in:
-
Base
|
|
Unregister notification on property value changed
- Type:
-
(name: string, key?: string) => void
- Parameters:
-
name, type: string
, the property name
key, type: string
, the key with which you have registered the notification for this property. It can be null.
- Implemented in:
-
Base
|