Collection Class
Constructor
Collection
-
[options]
Parameters:
-
[options]Object optionalconfiguration object
-
[min]Number optionalmin default min items
-
[max]Number optionalmax default max items
-
[singleValue]String optionalsingleValue property name of single value
-
Item Index
Methods
addChild
-
index -
item -
template -
propertyName
add a child to this.$el but on
Parameters:
-
indexNumberfor resulting $item dom element
-
itemObjectdata for resulting $item dom element
-
templateStringto render $item
-
propertyNameStringname of property
Returns:
deferred objects that´s indicates end of asynchronous functions
canAdd
()
Boolean
returns TRUE if a child can be added for given property
Returns:
canRemove
()
Boolean
returns TRUE if a child can be removed for given property
Returns:
getChildren
-
propertyName
returns children for given property
Parameters:
-
propertyNameString
Returns:
getMaxOccurs
-
propertyName
returns min occurs
Parameters:
-
propertyNameString
Returns:
getMinOccurs
-
propertyName
returns min occurs
Parameters:
-
propertyNameString
Returns:
getValue
-
propertyName -
returnMapperId
returns data array
Parameters:
-
propertyNameString -
returnMapperIdString
Returns:
initializeSub
()
initialize templates
internalSetValue
-
templates -
value -
propertyName
maps given array (value) with given templates to this.$el
Parameters:
-
templatesObjectincludes tpl and empty template
-
valueArrayarray of data
-
propertyNameStringname of property
Returns:
deferred objects that´s indicates end of asynchronous functions
needsValidation
()
Boolean
indicates data to validate
Returns:
setValue
-
data -
propertyName
map value to this.$el
Parameters:
-
dataArray -
propertyNameString
Returns:
deferred objects that´s indicates end of asynchronous functions
validate
()
Boolean
validates this type of data
