simialbi / yii2-widget-hideseek
yii2 widget of Dimitris Krestos' hideseek plugin
Installs: 2 776
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- php: >=7.1
- simialbi/yii2-simialbi-base: >=0.13.0 | ^1.0.0
- yiisoft/yii2: ~2.0
Requires (Dev)
README
This extension provides a hideseek search widget for yii2 framework in bootstrap style. It's based on HideSeek from Dimitris Krestos.
Resources
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require --prefer-dist simialbi/yii2-widget-hideseek
or add
"simialbi/yii2-widget-hideseek": "*"
to the require
section of your composer.json
Example Usage
To include hideseek search in one of your pages, call the widget like this:
<?php /* @var $this yii\web\View */ use simialbi\yii2\hideseek\HideSeek; $this->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.