Package | feathers.data |
Interface | public interface IAutoCompleteSource extends IFeathersEventDispatcher |
Implementors | LocalAutoCompleteSource, URLAutoCompleteSource |
Product Version : | Feathers 2.1.0 |
AutoComplete
component.
See also
Method | Defined By | ||
---|---|---|---|
addEventListener(type:String, listener:Function):void
Adds a listener for an event type. | IFeathersEventDispatcher | ||
dispatchEvent(event:Event):void
Dispatches an event to all listeners added for the specified event type. | IFeathersEventDispatcher | ||
dispatchEventWith(type:String, bubbles:Boolean = false, data:Object = null):void
Dispatches an event from the pool with the specified to all listeners
for the specified event type. | IFeathersEventDispatcher | ||
hasEventListener(type:String, listener:Function = null):Boolean
Checks if a listener has been added for the specified event type. | IFeathersEventDispatcher | ||
load(textToMatch:String, suggestionsResult:IListCollection = null):void
Loads suggestions based on the text entered into an
AutoComplete component. | IAutoCompleteSource | ||
removeEventListener(type:String, listener:Function):void
Removes a listener for an event type. | IFeathersEventDispatcher | ||
removeEventListeners(type:String = null):void
Removes all listeners for an event type. | IFeathersEventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the suggestions finish loading. | IAutoCompleteSource |
load | () | method |
public function load(textToMatch:String, suggestionsResult:IListCollection = null):void
Loads suggestions based on the text entered into an
AutoComplete
component.
If an existing ListCollection
is passed in as the
result, all items will be removed before new items are added.
Parameters
textToMatch:String | |
suggestionsResult:IListCollection (default = null )
|
complete | Event |
starling.events.Event
starling.events.Event.COMPLETE
Dispatched when the suggestions finish loading.
The properties of the event object have the following values:
Property | Value |
---|---|
bubbles | false |
currentTarget | The Object that defines the
event listener that handles the event. For example, if you use
myButton.addEventListener() to register an event listener,
myButton is the value of the currentTarget . |
data | A ListCollection containing
the suggestions to display. |
target | The Object that dispatched the event;
it is not always the Object listening for the event. Use the
currentTarget property to always access the Object
listening for the event. |