simialbi/yii2-widget-hideseek

yii2 widget of Dimitris Krestos' hideseek plugin

Installs: 1 616

Dependents: 3

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

1.3.1 2022-01-18 11:49 UTC

This package is auto-updated.

Last update: 2022-01-18 11:49:56 UTC


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.