anmaslov/yii2-autocomplete-widget 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

anmaslov/yii2-autocomplete-widget

最新稳定版本:v1.1

Composer 安装命令:

composer require anmaslov/yii2-autocomplete-widget

包简介

Ajax AutoComplete widget for Yii2

README 文档

README

Yii2 Latest Version Build Status Software License

The Autocomplete extension is a Yii2 wrapper widget for for the Autocomplete for jQuery plugin. AutoComplete allows you to easily create autocomplete/autosuggest boxes for text input fields.

Has no dependencies other than jQuery. The widget is specially styled for Bootstrap 3.

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require anmaslov/yii2-autocomplete-widget "*"

or add

"anmaslov/yii2-autocomplete-widget": "*"

to the require section of your composer.json file.

Usage

Get data from model

$data = Link::find()
            ->select('title as value')
            ->asArray()
            ->all();

In view

use anmaslov\autocomplete\AutoComplete;

echo AutoComplete::widget([
            'name' => 'link',
            'data' =>  $model,
             'clientOptions' => [
                 'minChars' => 2,
             ],
        ])

License

yii2-autocomplete-widget is released under the MIT License.

统计信息

  • 总下载量: 4.38k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固