useful-web/yii-bootstrap-multiselect 问题修复 & 功能扩展

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

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

useful-web/yii-bootstrap-multiselect

Composer 安装命令:

composer require useful-web/yii-bootstrap-multiselect

包简介

bootstrap-multiselect extension

README 文档

README

Simple asset for davidstutz/bootstrap-multiselect

Example :

<?php 
  
    $this->widget('path.to.plugin',array(
      // 'name' or 'attribute' and 'model'
      'name' => $name, 
      'value' => $model->value, 
      // availiable options
      'data' => $data,
      'htmlOptions' => array(
        'class' => 'col-sm-5 form-control',
        // if you need multiple
        'multiple' => true,
      ),
      'pluginOptions' => array(
        // part of plugin options, you can see all at https://github.com/davidstutz/bootstrap-multiselect
        'filterPlaceholder' => 'Поиск',
        'maxHeight' => 300,
        'enableFiltering' => true,
        'includeFilterClearBtn' => true,
        'includeSelectAllOption' => true,
        'selectAllText' => 'Clear all',
        'allSelectedText' => 'All items have been selected',
        'nonSelectedText' => 'Select items',
        'templates' => array(
          'filter' => '<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="fa fa-search"></i></span><input class="form-control multiselect-search" type="text"></div></li>',
          'filterClearBtn' => '<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter form-control" type="button"><i class="fa fa-remove"></i></button></span>',
        )
      ),
    ));
  ?>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-26