Class QAutocompleteBase
Implements the JQuery UI Autocomplete widget
The Autocomplete is JQuery UIs version of a field with an attached drop down menu. As you type in the field, the menu appears, and the items in the menu are filtered by what the user types. This class allows you to use an array of QListItems, or an array of database objects as the source. You can also pass this array statically in the Source parameter at creation time, or dynamically via Ajax by using SetDataBinder, and then in your data binder function, setting the DataSource parameter.
- QBaseClass
-
QHtmlAttributeManagerBase
-
QHtmlAttributeManager
-
QControlBase
-
QControl
-
QTextBoxBase
-
QTextBox
-
QAutocompleteGen
-
QAutocompleteBase
Direct known subclasses
QAutocompleteLink: http://jqueryui.com/autocomplete/
Located at includes/base_controls/QAutocompleteBase.class.php
public
|
#
__construct(
Constructor for the QTextBox[Base] |
public static
|
#
UseFilter( string|
Set a filter to use when using a simple array as a source (in non-ajax mode). Note that ALL non-ajax autocompletes on the page will use the new filter. |
public
|
#
SetDataBinder( string $strMethodName,
Set the data binder for ajax filtering |
public
string
|
#
GetEndScript( )
Gets the Javascript part of the control which is sent to the client side upon the completion of Render |
protected
|
|
public
|
|
protected
mixed
|
|
protected
|
|
public
mixed
|
|
public
mixed
|
Close(),
Destroy(),
Disable(),
Enable(),
GetJqSetupFunction(),
GetModelConnectorParams(),
Instance(),
MakeJqOptions(),
Option(),
Option1(),
Option2(),
Option3(),
Search()
|
GetControlHtml(),
InitHtmlPurifier(),
ParsePostData(),
RenderHtmlAttributes(),
Sanitize(),
Select(),
SetPurifierConfig(),
Validate()
|
OverrideAttributes(),
__call()
|
string |
FILTER_CONTAINS
When this filter is passed to QAutocomplete::UseFilter, only the items in the source list that contain the typed term will be shown in the drop-down This is the default filter used by the jQuery autocomplete. Useful when resetting from a previousely set filter. |
#
'return $j.ui.autocomplete.escapeRegex(term);'
|
string |
FILTER_STARTS_WITH
When this filter is passed to QAutocomplete::UseFilter, only the items in the source list that begin with the typed term will be shown in the drop-down |
#
'return ("^" + $j.ui.autocomplete.escapeRegex(term));'
|
CommentEnd,
CommentStart
|
protected
string
|
$strSelectedId
|
#
null
|
protected
boolean
|
$blnUseAjax
|
#
false
|
$blnAutoFocus,
$blnDisabled,
$intDelay,
$intMinLength,
$mixAppendTo,
$mixPosition,
$mixSource,
$strJavaScripts,
$strStyleSheets
|
$strCssClass
|
$attributes,
$styles
|
public
string
|
$SelectedId
the id of the selected item. When QAutocompleteListItem objects are used for the DataSource, this corresponds to the Value of the item |
public
boolean
|
$MustMatch
if true, non matching values are not accepted by the input |
public
string
|
$MultipleValueDelimiter
if set, the Autocomplete will keep appending the new selections to the previous term, delimited by this string. This is useful when making QAutocomplete handle multiple values (see http://jqueryui.com/demos/autocomplete/#multiple ). |
public
boolean
|
$DisplayHtml
if set, the Autocomplete will treat the 'label' portion of each data item as Html. |
public write-only
array
|
$Source
an array of strings, QListItem's, or data objects. To be used at creation time. {@inheritdoc } |
public write-only
array
|
$DataSource
an array of strings, QListItem's, or data objects |
$AppendTo,
$AutoFocus,
$Delay,
$Disabled,
$MinLength,
$Position
|
$AccessKey,
$AltText,
$BackColor,
$BorderCollapse,
$BorderColor,
$BorderStyle,
$BorderWidth,
$CssClass,
$Cursor,
$Data,
$Display,
$DisplayStyle,
$Enabled,
$FontBold,
$FontItalic,
$FontNames,
$FontOverline,
$FontSize,
$FontStrikeout,
$FontUnderline,
$ForeColor,
$Height,
$HorizontalAlign,
$Left,
$Margin,
$NoWrap,
$Opacity,
$OrderedListType,
$Overflow,
$Padding,
$ReadOnly,
$TabIndex,
$ToolTip,
$Top,
$UnorderedListStyle,
$VerticalAlign,
$Width
|