SearchBox

Override defaults with $.fn.searchbox.defaults.

Dependencies

  • menubutton

Usage Example

Create SearchBox

1. Create from markup. Add 'easyui-searchbox' class to <input/> markup.

2. Create programatically.

Properties

Name Type Description Default
width number Set the component width. auto
prompt string The prompt message to be displayed in input box. ''
value string The inputed value. ''
menu selector The search type menu. Each menu item can has below attribute:
name: the search type name.
selected: current selected search type name.
null
searcher function(value,name) The searcher function that will be called when user presses the searching button or press ENTER key. null

Methods

Name Parameter Description
options none Return the options object.
menu none Return the search type menu object.
textbox none Return the text box object.
getValue none Return the current searching value.
setValue value Set a new searching value.
getName none Return the current searching type name.
selectName name Select the current searching type name.
destroy none Destroy this component.
resize width Reset the component width.