AngularJS directive for the ComboBox control.
Use the wj-combo-box directive to add ComboBox controls to your AngularJS applications. Note that directive and parameter names must be formatted as lower-case with dashes instead of camel-case. For example:
<p>Here is a ComboBox control:</p> <wj-combo-box text="theCountry" items-source="countries" is-editable="false" placeholder="country"> </wj-combo-box>
The example below creates a ComboBox control and binds it to a 'countries' array exposed by the controller. The ComboBox searches for the country as the user types. The isEditable property is set to false, so the user is forced to select one of the items in the list.
The wj-combo-box directive supports the following attributes:
@Binds the control's selectedValue property using the ng-model Angular directive. Binding the property using the ng-model directive provides standard benefits like validation, adding the control's state to the form instance, and so on. To redefine properties on a control that is bound by the ng-model directive, use the wj-model-property attribute.
@Specifies a control property that is bound to a scope using the ng-model directive.
=A reference to the ComboBox control created by this directive.
@The name of the property to use as the visual representation of the items.
@A value indicating whether the drop-down list displays the items as plain text or as HTML.
@A value indicating whether the drop down list is currently visible.
@A value indicating whether the user can enter values not present on the list.
&This event occurs after the binding has finished initializing the control with attribute values.
=A value indicating whether the binding has finished initializing the control with attribute values.
=A function used to customize the values shown in the drop-down list.
=An array or ICollectionView that contains items to show in the list.
@The maximum height of the drop-down list.
@The maximum width of the drop-down list.
@A string shown as a hint when the control is empty.
@A value indicating whether to prevent null values.
@A value indicating whether the control displays a drop-down button.
=The index of the currently selected item in the drop-down list.
=The currently selected item in the drop-down list.
=The value of the selected item, obtained using the selected-value-path.
@The name of the property used to get the selected-value from the selected-item.
=The text to show in the control.
&The ComboBox.isDroppedDownChanging event handler.
&The ComboBox.isDroppedDownChanged event handler.
&The ComboBox.selectedIndexChanged event handler.
&The ComboBox.gotFocus event handler.
&The ComboBox.lostFocus event handler.
&The ComboBox.textChanged event handler.