Login Register Help
API Documentation
Choose a stylesheet:

Constructordijit.form.FilteringSelect

dojo.require("dijit.form.FilteringSelect");
defined in dijit/form/FilteringSelect.js

An enhanced version of the HTML SELECT tag, populated dynamically. It works very nicely with very large data sets because it can load and page data as needed. It also resembles ComboBox, but does not allow values outside of the provided ones. If OPTION tags are used as the data provider via markup, then the OPTION tag’s child text node is used as the displayed value when selected while the OPTION tag’s value attribute is used as the widget value on form submit. To set the default value when using OPTION tags, specify the selected attribute on 1 of the child OPTION tags.

Similar features: - There is a drop down list of possible values. - You can only enter a value from the drop down list. (You can’t enter an arbitrary value.) - The value submitted with the form is the hidden value (ex: CA), not the displayed value a.k.a. label (ex: California)

Enhancements over plain HTML version: - If you type in some text then it will filter down the list of possible values in the drop down list. - List can be specified either as a static list or via a javascript function (that can get the list from a server)

Usage

var foo=new dijit.form.FilteringSelect(params: Object?, srcNodeRef: DomNode|String);
parametertypedescription
paramsObjectOptional.
srcNodeRefDomNode|String 

Jump to PropertiesJump to FunctionsConstructorsBack to top

Callback function that dynamically sets the label of the ComboBox
Hook so attr('displayedValue', label) works.
Internal function for setting the displayed value and hidden value. Differs from _setValueAttr() in that _setValueAttr() only takes a single value argument, and has to look up the displayed value from that.
Hook so attr('value', value) works.
Set the displayed valued in the input box, and the hidden value that gets submitted, based on a dojo.data store item.

Jump to PropertiesJump to ConstructorsFunctionsBack to top

Functionattr(name: String|Object, value: Object?)
Defined by dijit._Widget
Set or get properties on a widget instance.
Functioncompare(val1: anything, val2: anything)
Compare 2 values (as returned by attr('value') for this widget).
Functionconnect(obj: Object|null, event: String|Function, method: String|Function)
Defined by dijit._Widget
Connects specified obj/event to specified method of this object and registers for disconnect() on widget destroy.
Functiondestroy(preserveDom: Boolean)
Destroy this widget, but not its descendants. Will, however, destroy internal widgets such as those used within a template.
Defined by dijit._Widget
Recursively destroy the children of this widget and their descendants.
FunctiondestroyRecursive(preserveDom: Boolean?)
Defined by dijit._Widget
Destroy this widget and it's descendants. This is the generic "destructor" function that all widget users should call to cleanly discard with a widget. Once a widget is destroyed, it's removed from the manager object.
FunctiondestroyRendering(preserveDom: Boolean?)
Defined by dijit._Widget
Destroys the DOM nodes associated with this widget
Functiondisconnect(handles: Object)
Defined by dijit._Widget
Disconnects handle created by this.connect. Also removes handle from this widget's list of connects
Functionfilter(val)
Defined by dijit.form.TextBox
Auto-corrections (such as trimming) that are applied to textbox value on blur or form submit.
Put focus on this widget
Functionformat(value: String, constraints: Object)
Defined by dijit.form.TextBox
Replacable function to convert a value to a properly formatted string.
Defined by dijit._Widget
Returns all the widgets contained by this, i.e., all widgets underneath this.containerNode. Does not return nested widgets, nor widgets that are part of this widget's template.
Defined by dijit._Widget
Returns all the widgets that contained by this, i.e., all widgets underneath this.containerNode. This method should generally be avoided as it returns widgets declared in templates, which are supposed to be internal/hidden, but it's left here for back-compat reasons.
Defined by dijit.form.TextBox
Deprecated. Use attr('displayedValue') instead.
Return an error message to show if appropriate
Return a hint message to show when widget is first focused
Deprecated. Use attr('value') instead.
Tells if this widget is focusable or not. Used internally by dijit.
Defined by dijit._Widget
Checks the page for text direction
FunctionisValid(isFocused: Boolean): #5974
Tests if value is valid. Can override with your own routine in a subclass.
FunctionlabelFunc(item: item, store: dojo.data.store)
Overrides
Computes the label to display based on the dojo.data store item.
Defined by dijit._Widget
Called when the widget stops being "active" because focus moved to something outside of it, or the user clicked somewhere outside of it, or the widget was hidden.
FunctiononChange(newValue)
Callback when this widget's value is changed.
FunctiononClick(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of mouse click events.
Defined by dijit._Widget
Callback if someone tries to close the child, child will be closed if func returns true
FunctiononDblClick(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of mouse double click events.
Defined by dijit._Widget
Called when the widget becomes "active" because it or a widget inside of it either has focus, or has recently been clicked.
Defined by dijit._Widget
Called when another widget becomes the selected pane in a dijit.layout.TabContainer, dijit.layout.StackContainer, dijit.layout.AccordionContainer, etc. Also called to indicate hide of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
FunctiononKeyDown(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of keys being pressed down.
FunctiononKeyPress(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of printable keys being typed.
FunctiononKeyUp(event: key)
Defined by dijit._Widget
Connect to this function to receive notifications of keys being released.
FunctiononMouseDown(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse button is pressed down.
FunctiononMouseEnter(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves onto this widget.
FunctiononMouseLeave(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves off of this widget.
FunctiononMouseMove(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
FunctiononMouseOut(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
FunctiononMouseOver(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
FunctiononMouseUp(event: mouse)
Defined by dijit._Widget
Connect to this function to receive notifications of when the mouse button is released.
Defined by dijit._Widget
Called when this widget becomes the selected pane in a dijit.layout.TabContainer, dijit.layout.StackContainer, dijit.layout.AccordionContainer, etc. Also called to indicate display of a dijit.Dialog, dijit.TooltipDialog, or dijit.TitlePane.
Functionparse(value: String, constraints: Object): String
Defined by dijit.form.TextBox
Replacable function to convert a formatted string to a value
FunctionplaceAt(reference: String|DomNode|_Widget, position: String|Integer?)
Defined by dijit._Widget
Place this widget's domNode reference somewhere in the DOM based on standard dojo.place conventions, or passing a Widget reference that contains and addChild member.
Called after a widget's dom has been setup
Defined by dijit._Widget
Called after the parameters to the widget have been read-in, but before the widget template is instantiated. Especially useful to set properties that are referenced in the widget template.
Overridable function used to generate regExp when dependent on constraints. Do not specify both regExp and regExpGen.
Functionserialize(val: anything, options: Object?): String
Overridable function used to convert the attr('value') result to a canonical (non-localized) string. For example, will print dates in ISO format, and numbers the same way as they are represented in javascript.
FunctionsetAttribute(attr: String, value: anything)
Defined by dijit._Widget
Deprecated. Use attr() instead.
FunctionsetDisabled(disabled: Boolean)
Deprecated. Use attr('disabled', ...) instead.
Defined by dijit.form.TextBox
Deprecated. Use attr('displayedValue', ...) instead.
Deprecated. Use attr('value', ...) instead.
Returns widget as a printable string using the widget's value
Restore the value to the last value passed to onChange
Defined by dijit._Widget
Stub function. Override to implement custom widget tear-down behavior.
Overridable function used to validate the text input against the regular expression.
Defined by dijit._Widget
Step during widget creation to copy all widget attributes to the DOM as per attributeMap and _setXXXAttr functions.
Function_attrToDom(attr: String, value: String)
Defined by dijit._Widget
Reflect a widget attribute (title, tabIndex, duration etc.) to the widget DOM, as specified in attributeMap.
Function_doSelect(tgt: Event)
Overrides
Overrides ComboBox._doSelect(), the method called when an item in the menu is selected.
Defined by dijit.form.TextBox
Hook so attr('displayedValue') works.
Overrides
Hook for attr('value') to work.
Overrides
Checks for whitespace
Returns true if the value is either already valid or could be made valid by appending characters. This is used for validation while the user [may be] still typing.
This is where widgets do processing for when they stop being active, such as changing CSS classes. See onBlur() for more details.
Defined by dijit._Widget
Called when someone connects to one of my handlers. "Turn on" that handler if it isn't active yet. This is also called for every single initialization parameter so need to do nothing for parameters like "id".
This is where widgets do processing for when they are active, such as changing CSS classes. See onFocus() for more details.
Defined by dijit._Widget
Internal method called when this widget is made visible. See onShow for details.
After the user types some characters, etc., this method is called to check the field for validity etc. The base method in dijit.form.TextBox does nothing, but subclasses override.
Hook so attr('value', ...) works.

Jump to FunctionsJump to ConstructorsPropertiesBack to top

Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Defined by dijit._Widget
Overrides