An enhanced <input>
element that provides common features for a search input.
Type: number
Sets the delay, in ms, after the last keystroke before a change
event is fired.
Type: number
Sets the minimum length of text before the input triggers a change
event. Clearing
the input to 0 will always trigger a change
event regardless of this setting.
Trigger the change event on the search input.
$(".input").searchBox('change');
Sets a the value of the count label on the search box. This can be used to
provide feedback to the user as to how many ‘things’ the search currently
matches. The value
is a string.
The standard pattern to follow is:
"300"
"120 / 300"
If value
is null, undefined or blank, the count field is hidden.
$(".input").searchBox('count', '120 / 300');
Returns: String
Gets the current value of the search input.
var type = $(".input").searchBox('value');
Sets the current value of the search input.
$(".input").searchBox('value','hello');
Node-RED is a visual wiring tool for the Internet of Things.
A project of the JS Foundation.