# j-SearchInput

> Customizable search input.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: bea6824b457621cadb59ad1871955b168aa7d17eaab4e4d62be34a38e9bfc0e3
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

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 plceholder
- `autofocus {Boolean/Number}` enables auto-focus for non-mobile devices (number means a delay for auto-focus, default: `false`)
- `exec {String}` a link to the `function(value, element)` which will be evaluated if the input is affected
- __NEW__: `realtime {Boolean}` enables real-time binding (default: `true`)

__Methods__:

- `component.focus()` focuses input
- `component.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.

```html example.html
<ui-component name="searchinput" path="%search" class="m"></ui-component>
<ui-bind path="%search" config="text b" class="block">Search: <b></b></ui-bind>
```
