BiAbstractAutoCompleteDataModel
The base class of all auto complete data models
This class extends BiEventTarget and therefore all methods and fields available for BiEventTarget are also available for BiAbstractAutoCompleteDataModel .
Constructor
new BiAbstractAutoCompleteDataModel ( )
Parameters
No parameters.
Properties
| Name | Type | get | set | Descripton |
itemCount | Number | ![]() | Return the current number of items depending on the last execution of "prepareData". |
Methods
| Name | Description |
dispatchDataReady | Prepares and dispatches a "dataready" event. |
getItem | Return the item associated with an specific index. Depends on the last execution of "prepareData". |
prepareData | Prepares the data to be used to populate the autocomplete drop down. |
Events
None.
Static Methods
None.
Static Fields
None.
Remarks
None.
Method Details
dispatchDataReady
Prepares and dispatches a "dataready" event.
Syntax
object.dispatchDataReady ( oData ) Parameters
| Name | Type | Optional | Default | Descripton |
oData | Array | The data that are to be used by autocomplete to populate the drop down. |
Return Type
void
getItem
Return the item associated with an specific index. Depends on the last execution of "prepareData".
Syntax
object.getItem ( nIndex ) Parameters
| Name | Type | Optional | Default | Descripton |
nIndex | Number | the index |
Return Type
String
prepareData
Prepares the data to be used to populate the autocomplete drop down.
Syntax
object.prepareData ( sText ) Parameters
| Name | Type | Optional | Default | Descripton |
sText | String | Search text entered by the user. |
Return Type
void
