Class TbTypeAhead
Bootstrap typeahead widget.
- CInputWidget
- TbTypeAhead
Copyright: Copyright © Christoffer Niska 2013-
License: New BSD License
Author: Antonio Ramirez <ramirez.cobos@gmail.com>
Located at widgets/TbTypeAhead.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
public
mixed
|
$source | array() |
#
the data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument. |
public
integer
|
$items | 8 |
#
the max number of items to display in the dropdown. Defaults to 8. |
public
integer
|
$minLength | 1 |
#
the minimum character length needed before triggering autocomplete suggestions |
public
string
|
$matcher |
|
#
javascript function the method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match. Case insensitive. |
public
string
|
$sorter |
|
#
javascript function method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query. Exact match, case sensitive, case insensitive |
public
string
|
$updater |
|
#
javascript the method used to return selected item. Accepts a single argument, the item and has the scope of the typeahead instance. Returns selected item. |
public
string
|
$highlighter |
|
#
javascript method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html. Highlights all default matches |
protected
array
|
$pluginOptions | array() |
#
the plugin options |