new bbbfly.SearchEdit (def, ref, parent)
Parameters
| Name | Type | Description |
|---|---|---|
| def | bbbfly.SearchEdit.Definition | optional Descendant definition |
| ref | object | optional Reference owner |
| parent | object | string | optional Parent DIV element or it's ID |
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| HintMessages | object | ||
| noresults | resource | 'bbbfly_searchedit_noresults' | |
| SearchImg | bbbfly.Renderer.image | null | Search button image |
Extends
In Packages
Type Definitions
-
searchResults object
-
Properties:
Name Type Description count integer Number of result items results Array.<object> Result items current integer | null Currently displayed result item index
Interfaces
Methods
-
ClearSearch ()
-
- See:
-
abstract DoSearch (text){boolean}
-
Use this method to implement searching process.
Parameters:
Name Type Description text string Searched text - See:
Returns:
Type Description boolean If text was valid -
inherited GetButton (buttonId){bbbfly.Edit.Button|null}
-
Parameters:
Name Type Description buttonId string Required button's ButtonId Returns:
Type Description bbbfly.Edit.Button | null - Button with passes ButtonId -
Search (text){boolean}
-
Search for passed text or text filled in edit.
Parameters:
Name Type Description text string optional Edit text will be used if undefined Returns:
Type Description boolean If text was valid -
inherited SetFocusAfter ()
-
Focus edit with caret at the text end.
- See:
-
inherited SetFocusBefore ()
-
Focus edit with caret at the text begining.
- See:
-
SetSearchResults (results){boolean}
-
Parameters:
Name Type Description results bbbfly.SearchEdit.searchResults Returns:
Type Description boolean If results were valid
Events
-
inherited OnInvalidChanged ()
-
-
OnNoSearchResults ()
-
Called when nothing was found.
-
OnSearch (text){boolean}
-
Parameters:
Name Type Description text string - See:
Returns:
Type Description boolean If continue to search -
OnSearchResults (results)
-
Called when any anything was found.
Parameters:
Name Type Description results bbbfly.SearchEdit.searchResults