Class ecm.model._AttributeMixin
Provides methods for attribute objects such as ecm.model.AttributeDefinition
and
ecm.model.SearchCriterion
.
Defined in: <ecm\model\_AttributeMixin.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
Returns the allowed values as an array of select options, suitable for immediate use within a
dijit.form.Select . |
|
Returns an array of objects that can be used to represent the available operators in a form select widget.
|
|
getChoiceList(onlyValid)
Returns the choice list for the attribute.
|
|
Returns true if the choice list for the attribute is nested, or hierarchical.
|
|
Method Detail
getAllowedValuesSelectOptions()
Returns the allowed values as an array of select options, suitable for immediate use within a
dijit.form.Select
.
getAvailableOperatorsSelectOptions()
Returns an array of objects that can be used to represent the available operators in a form select widget.
Note that all operators are returned, including those that may be assigned to be filtered in the repository
(see
ecm.model.Repository.searchFilteredOperators
).
getChoiceList(onlyValid)
Returns the choice list for the attribute. A choice list can be used to provide a list of selections (usually
via a drop-down menu) for an attribute's value.
- Parameters:
- onlyValid
- If the value is true, only valid choices are returned. If the value is false, both valid and invalid choices are returned.
isChoiceListNested()
Returns true if the choice list for the attribute is nested, or hierarchical.
isDateTime()
- Since:
- 2.0.2
isNumeric()
- Since:
- 2.0.2