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 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: Low-code programming for event-driven applications.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
The OpenJS Foundation | Terms of Use | Privacy Policy | OpenJS Foundation Bylaws | Trademark Policy | Trademark List | Cookie Policy