DefaultPropertyConfig
Used for PropertyFactory config
Tags
Table of Contents
CAPTION | Property caption/label for users to see. | 'caption' |
---|---|---|
ID | An optional unique identifier for some property | 'id' |
VALUE | Default value | 'value' |
SETTER | Callback used for setting a properties value when it is an object. | 'setter' |
GETTER | Callback used for setting a properties value when it is an object. | 'getter' |
MSETTER | Callback used for setting a properties value when it is an object. | 'msetter' |
MGETTER | Callback used for setting a properties value when it is an object. | 'mgetter' |
TYPE | Data type. | "type" |
FLAGS | Property flags. | "flags" |
CLAZZ | Class name used with object properties | "clazz" |
INIT | A callback used to initialize the default value within the model. | "initialize" |
MIN | Minimum value/length | "min" |
MAX | Maximum value/length | "max" |
VALIDATE | Closure for validating prior to save [bool is valid] = function( IProperty, [input value] ) | "validate" |
PATTERN | Validation regex | "pattern" |
CONFIG | A config array | "config" |
PREFIX | A prefix used by the default property set, which can proxy a get/set value call to a nested IModel instance. | 'prefix' |
CHANGE | On Change event f( IProperty, oldValue, newValue ) : void | 'onchange' |
HTMLINPUT | For a give property, create an htmlproperty\IElement instance used as an html form input. | 'htmlinput' |
IS_EMPTY | Is empty check event. | 'isempty' |
TAG | An optional tag for the attribute. | 'tag' |
Constants
CAPTION
Property caption/label for users to see.
public
mixed
$CAPTION
= 'caption'
ID
An optional unique identifier for some property
public
mixed
$ID
= 'id'
VALUE
Default value
public
mixed
$VALUE
= 'value'
SETTER
Callback used for setting a properties value when it is an object.
public
mixed
$SETTER
= 'setter'
GETTER
Callback used for setting a properties value when it is an object.
public
mixed
$GETTER
= 'getter'
MSETTER
Callback used for setting a properties value when it is an object.
public
mixed
$MSETTER
= 'msetter'
MGETTER
Callback used for setting a properties value when it is an object.
public
mixed
$MGETTER
= 'mgetter'
TYPE
Data type.
public
mixed
$TYPE
= "type"
FLAGS
Property flags.
public
mixed
$FLAGS
= "flags"
CLAZZ
Class name used with object properties
public
mixed
$CLAZZ
= "clazz"
INIT
A callback used to initialize the default value within the model.
public
mixed
$INIT
= "initialize"
MIN
Minimum value/length
public
mixed
$MIN
= "min"
MAX
Maximum value/length
public
mixed
$MAX
= "max"
VALIDATE
Closure for validating prior to save [bool is valid] = function( IProperty, [input value] )
public
mixed
$VALIDATE
= "validate"
PATTERN
Validation regex
public
mixed
$PATTERN
= "pattern"
CONFIG
A config array
public
mixed
$CONFIG
= "config"
PREFIX
A prefix used by the default property set, which can proxy a get/set value call to a nested IModel instance.
public
mixed
$PREFIX
= 'prefix'
CHANGE
On Change event f( IProperty, oldValue, newValue ) : void
public
mixed
$CHANGE
= 'onchange'
HTMLINPUT
For a give property, create an htmlproperty\IElement instance used as an html form input.
public
mixed
$HTMLINPUT
= 'htmlinput'
IS_EMPTY
Is empty check event.
public
mixed
$IS_EMPTY
= 'isempty'
TAG
An optional tag for the attribute.
public
mixed
$TAG
= 'tag'