autocomplete-list.js revision f5738feb0b3d461c1398fc1cd8fc01b0de21d592
246N/A * Traditional autocomplete dropdown list widget, just like Mom used to make. 246N/A * @submodule autocomplete-list 246N/A * @class AutoCompleteList 246N/A * @uses AutoCompleteBase 246N/A * @uses WidgetPositionAlign 246N/A * @param {Object} config Configuration object. 246N/A // -- Prototype Properties ------------------------------------------------- 246N/A // -- Lifecycle Prototype Methods ------------------------------------------ 246N/A 'aria-autocomplete':
'list',
246N/A // -- Public Prototype Methods --------------------------------------------- 246N/A // -- Protected Prototype Methods ------------------------------------------ 246N/A * Appends the specified result <i>items</i> to the list inside a new item 246N/A * @param {Array|Node|HTMLElement|String} items Result item or array of 246N/A * Binds <code>inputNode</code> events, in addition to those already bound 246N/A * by <code>AutoCompleteBase</code>'s public <code>bindInput()</code> 246N/A // Call AutoCompleteBase's bind method first. 246N/A * Clears the contents of the tray. 246N/A * Creates an item node with the specified <i>content</i>. 246N/A * @method _createItemNode 246N/A * @param {Node|HTMLElement|String} content 246N/A * @returns {Node} Item node. 246N/A * Synchronizes the results displayed in the list with those in the 246N/A * <i>results</i> argument, or with the <code>results</code> attribute if an 246N/A * argument is not provided. 246N/A * @param {Array} results (optional) Results. 246N/A * Synchronizes the visibility of the tray with the <i>visible</i> argument, 246N/A * or with the <code>visible</code> attribute if an argument is not 246N/A * @method _syncVisibility 246N/A * @param {Boolean} visible (optional) Visibility. 246N/A // -- Protected Event Handlers --------------------------------------------- 246N/A * Handles <code>inputNode</code> <code>blur</code> events. 246N/A * @param {EventTarget} e 246N/A // Hide the list on inputNode blur events, unless the mouse is currently 246N/A // over the list (which indicates that the user is probably interacting 246N/A // with it) or the tab key was pressed. 246N/A * Handles <code>inputNode</code> key events. 246N/A * @method _onInputKeyDown 246N/A * @param {EventTarget} e 246N/A * Handles <code>mouseenter</code> events. 246N/A * @method _afterMouseEnter 246N/A * @param {EventTarget} e 246N/A * Handles <code>mouseleave</code> events. 246N/A * @method _afterMouseLeave 246N/A * @param {EventTarget} e 246N/A * Handles <code>resultsChange</code> events. 246N/A * @method _afterResultsChange 246N/A * @param {EventFacade} e 246N/A * Handles <code>visibleChange</code> events. 246N/A * @method _afterVisibleChange 246N/A * @param {EventFacade} e 246N/A * See that class for API docs.