BaseClass Class
Construct of the object calls following method in order:
1. beforeInit
2. init
3. setDefaults
4. setOptions
5. afterInit
Constructor
BaseClass
<object>
Parameters:
-
<object>
Objectoptions
Item Index
Properties
Methods
_setDefaults
() private
Method is setting control's defaults variables set from current theme.
_setOptions
() private
Method is setting control's option variables. Options is present at the contstuct of the object after defaults are applied.
_setProperty
() private
Method is parsing options and set properties to the control. Options is a JSON object.
afterInit
() protected
Method is executed after inititialization of this object
beforeInit
() protected
Method is executed before inititialiation of this object
init
() protected
Method is executed to initialize object
setDefaults
() protected
Method is setting default class values
setOptions
() protected
Method is setting options passed as class parameters
Properties
defaults
Object
Sets default controls options
initialized
Boolean
options
Object
undefined
Object
Special property (Undefined Property Handler - UPH) executed when property is undefined. It can be that JSON format is in format "key" : "value". Key is an string, so if this is the case methot return "value". As well as k is a regular property of the class it returns getter of this property
Sub-properties:
-
key
String -
value
Object