j-SearchInput
Customizable search input.
Configuration:
searchicon {String}search icon (default:ti ti-search)cancelicon {String}cancel icon (default:ti ti-times)align {String}icon align (default:left)placeholder {String}a plceholderautofocus {Boolean/Number}enables auto-focus for non-mobile devices (number means a delay for auto-focus, default:false)exec {String}a link to thefunction(value, element)which will be evaluated if the input is affected- NEW:
realtime {Boolean}enables real-time binding (default:true)
Methods:
component.focus()focuses inputcomponent.clear()clears input
Use it with <ui-component name="searchinput">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="searchinput" path="%search" class="m"></ui-component>
<ui-bind path="%search" config="text b" class="block">Search: <b></b></ui-bind>