This extension provides a hideseek search widget for yii2 framework in bootstrap style. It's based
on HideSeek from Dimitris Krestos., (*1)
Resources
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
$ php composer.phar require --prefer-dist simialbi/yii2-widget-hideseek
or add, (*4)
"simialbi/yii2-widget-hideseek": "*"
to the require
section of your composer.json
, (*5)
Example Usage
To include hideseek search in one of your pages, call the widget like this:, (*6)
title = 'myForm';
$this->params['breadcrumbs'][] = $this->title;
?>
<article>
<label for="search">Programming Language Popularity</label>
<?=HideSeek::widget([
'fieldTemplate' => '<div class="search-field">{input}</div>',
'options' => [
'placeholder' => 'Start typing here',
'autocomplete' => 'off'
],
'clientOptions' => [
'.default_list'
]
]);
?>
<ul class="vertical default_list">
<li>C</li>
<li>Java</li>
<li>PHP</li>
<li>JavaScript</li>
<li>C++</li>
<li>Python</li>
<li>Shell</li>
<li>Ruby</li>
<li>Objective C</li>
<li>C#</li>
</ul>
</article>
License
yii2-widget-hideseek is released under MIT license. See bundled LICENSE for details., (*7)