Constructor
new module:br/presenter/node/AutoCompleteSelectionField(oProperty, oAutoCompleteProvider)
Extends:
Parameters:
| Name | Type | Description |
|---|---|---|
oProperty |
module:br/presenter/property/Property | The initial value of the auto complete field. |
oAutoCompleteProvider |
module:br/presenter/node/AutoCompleteProvider | The provider of the auto complete information. |
Extends
Members
-
controlName :br.presenter.property.WritableProperty
-
The logical control-name the selection field is being bound to — this value will appear within the
nameattribute if being bound to a native HTML control.Type:
- br.presenter.property.WritableProperty
-
enabled :br.presenter.property.WritableProperty
-
A boolean property representing whether the selection field is enabled or not.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
failureMessage :br.presenter.property.WritableProperty
-
A textual description of the currently failing validation message when
#hasErroristrue.Type:
- br.presenter.property.WritableProperty
-
hasError :br.presenter.property.WritableProperty
-
A boolean property that is
trueif#valuehas any validation errors, andfalseotherwise.Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
label :br.presenter.property.WritableProperty
-
The textual label associated with the selection field.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
-
options :br.presenter.node.OptionsNodeList
-
The current list of options the user can select from.
Type:
- br.presenter.node.OptionsNodeList
- Inherited From:
- Source:
-
selectedOptionLabel :br.presenter.property.Property
-
The current text value of the selected option's label.
Type:
- br.presenter.property.Property
-
visible :br.presenter.property.WritableProperty
-
A boolean property representing whether the selection field is visible or not.
Type:
- br.presenter.property.WritableProperty
- Inherited From:
- Source:
Methods
-
allowInvalidSelections(bAllowInvalidSelections)
-
Whether the selection field displays a validation error if the selected
#valueis not a member of the#optionsarray.Invalid selections cause validation errors by default, but this may not always be the desired behaviour, for example if the
SelectionFieldis being displayed using a combo-box, where the#optionsare acting merely as suggestions, rather than as the absolute set of options.Parameters:
Name Type Description bAllowInvalidSelectionsboolean Invalid selections are allowed when set to true. -
automaticallyUpdateValueWhenOptionsChange(bAutomaticallyUpdate)
-
Whether the selection field automatically picks a new
#valuewhen the underlying#optionschange.If the underlying
#optionschange, so that the new list of#optionsno longer includes the currently selected#value, a validation error will be displayed by default. In some circumstances, it may make sense to have the selection field automatically pick a new value automatically.Parameters:
Name Type Description bAutomaticallyUpdateboolean -
getPath()
-
Returns the path that would be required to bind this node from the view.
This method is used internally, but might also be useful in allowing the dynamic construction of views for arbitrary presentation models.
-
nodes(sNodeName, vProperties)
-
Returns all nested nodes matching the search criteria reachable from this node.
Care is taken not to search up the tree in cyclic presentation models (where some of the presentation nodes have back references to presentation nodes higher up in the tree).
Parameters:
Name Type Description sNodeNameString The name of nodes to match. vPropertiesObject Only nodes having this array or map of properties will be matched. - Inherited From:
- Source:
- See:
-
properties(sPropertyName, vValue)
-
Returns all nested properties matching the search criteria reachable from this node.
Care is taken not to search up the tree in cyclic presentation models (where some of the presentation nodes have back references to presentation nodes higher up in the tree).
Parameters:
Name Type Description sPropertyNameString The name of properties to match. vValueObject The value of properties to match. - Inherited From:
- Source:
- See:
-
removeAllListeners()
-
- Inherited From:
- Deprecated:
- This method has been replaced by #removeChildListeners which recurses the node tree.
Removes all listeners attached to the properties contained by this
PresentationNode.
- This method has been replaced by #removeChildListeners which recurses the node tree.
Removes all listeners attached to the properties contained by this
- Source:
-
removeChildListeners()
-
Removes all listeners attached to the properties contained by this
PresentationNode, and any nodes it contains.