2017 © Pedro Peláez
 

library yii2-widgets

widgets library for Yii2 framework

image

colee/yii2-widgets

widgets library for Yii2 framework

  • Wednesday, April 27, 2016
  • by colee
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

yii2-widgets

Yii2通用组件库

多级联动的下拉菜单

重点: 每一级都使用ajax获取数据,所以需要提供每一级的ajax url 必须填写每一级的模型属性(attribute), (*1)

LinkageSelect::widget([
     'model'=>$model,
     'template'=>'{item-0} {item-1}', // 可选项
     'items'=>[
         [
             'attribute'=>'city_id',
             'url'=>['city/find'],
             'initValueText'=>'北京',
         ],
         [
             'attribute'=>'area_id',
             'url'=>['area/find'],
             'initValueText'=>'朝阳',
         ]
     ],
     'hideSearch'=>true,
]);

The Versions

27/04 2016

dev-master

9999999-dev https://github.com/colee1985/yii2-widgets

widgets library for Yii2 framework

  Sources   Download

MIT

The Requires

 

by Avatar colee

yii2 colee yii2-widgets