symbol_pretty
换种使用方法
'source'=>['attribute' => 'source', 'contentOptions' => [ 'width'=>'70' ], 'value'=>function($model){return TDriverWand::getWandSource($model->source);}, 'filterType'=>kartik\grid\GridView::FILTER_SELECT2, 'filter'=>TDriverWand::getWandSource(), //'filter' => ArrayHelper::map(Author::find()->orderBy('name')->asArray()->all(), 'id', 'name'), 'filterWidgetOptions'=>[ 'pluginOptions'=>['allowClear'=>true], ], 'filterInputOptions'=>['placeholder'=>'请选择...'], 'group'=>false, // enable grouping ],