# j-FloatingSearch

> A simple floating search input. It uses absolute position and it's targeted above of toolbars because it can overlay the toolbar.

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

A simple floating search input. It uses absolute position and it's targeted above of toolbars because it can overlay the toolbar.


__Configuration__

- `placeholder {String}` A placeholder for input (default: empty)
- `height {Number}` A height in pixels (default: `45`)

__Methods__:

- `floatingsearch/show` shows the component in the current position
- `floatingsearch/hide` hides the component

Use it with `<ui-component name="floatingsearch">`. 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
<div style="position:relative">
	<ui-component name="floatingsearch" path="pathtosearch"></ui-component>
	<div style="height:45px;background-color:#F0F0F0;line-height:45px;padding:0 12px;">
		<div class="exec pull-right" data-exec="showsearch"><i class="ti ti-search"></i></div>
		TOOLBAR
	</div>
</div>
<br />
<ui-bind path="pathtosearch" config="text b" class="block">You're searching: <b></b></ui-bind>

<script>
	function showsearch() {
		SETTER('floatingsearch/show');
	}
</script>
```
