simialbi/yii2-widget-hideseek
最新稳定版本:1.4.0
Composer 安装命令:
composer require simialbi/yii2-widget-hideseek
包简介
yii2 widget of Dimitris Krestos' hideseek plugin
README 文档
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.
统计信息
- 总下载量: 3.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-12-15