inputEx-library

inputEx  0.7.1

inputEx-library > inputEx > inputEx.AutoComplete
Search:
 
Filters

Class inputEx.AutoComplete - extends inputEx.StringField

Known Subclasses:
inputEx.MultiAutoComplete
An autocomplete field that wraps the YUI autocompleter

Constructor

inputEx.AutoComplete ( options )
Parameters:
options <Object> Added options for Autocompleter
  • datasource: the datasource
  • autoComp: autocompleter options
  • returnValue: function to format the returned value (optional)

Properties inherited from inputEx.Field:

Methods

buildAutocomplete

void buildAutocomplete ( )
Build the YUI autocompleter

getValue

void getValue ( )
Return the hidden value (stored in a hidden input)

initEvents

void initEvents ( )
Custom event init
  • listen to autocompleter textboxBlurEvent instead of this.el "blur" event
  • listener to autocompleter textboxBlurEvent added in buildAutocomplete method

itemSelectHandler

void itemSelectHandler ( sType , aArgs )
itemSelect handler
Parameters:
sType <object>
aArgs <object>

onChange

void onChange ( e )
onChange event handler
Parameters:
e <Event> The original 'change' event

renderComponent

void renderComponent ( )
Render the hidden list element

setOptions

void setOptions ( options )
Adds autocomplete options
Parameters:
options <Object> Options object as passed to the constructor

setValue

void setValue ( value , [sendUpdatedEvt] )
Set the value
Parameters:
value <Any> Value to set
[sendUpdatedEvt] <boolean> (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.