定制 yii2mod/yii2-chosen-select 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yii2mod/yii2-chosen-select

最新稳定版本:1.2

Composer 安装命令:

composer require yii2mod/yii2-chosen-select

包简介

Chosen Select Widget based on Chosen jQuery plugin

README 文档

README

Chosen Select Widget based on Chosen jQuery plugin chosen

Latest Stable Version Total Downloads License Build Status

Installation

The preferred way to install this extension is through composer.

Either run

composer require yii2mod/yii2-chosen-select

or add

"yii2mod/yii2-chosen-select": "^1.0"

to the require section of your composer.json.

Usage

  1. Usage with ActiveForm and model
echo $form->field($model, 'subject')->widget(\yii2mod\chosen\ChosenSelect::class, [
    'items' => [
        'first' => 'First',
        'second' => 'Second'
     ],
]); 
  1. Usage without a model
echo \yii2mod\chosen\ChosenSelect::widget([
     'name'  => 'select',
     'items' => BooleanEnum::listData(),
     'options' => [
         'width' => '95%'
     ]
 ]);

Select Options

You can find them on the options page

Support us

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-22