Skip to content

Instantly share code, notes, and snippets.

View ioszhuk's full-sized avatar
🎯
Focusing

Kyrylo Zhukovskyi ioszhuk

🎯
Focusing
View GitHub Profile
@melaniecarr23
melaniecarr23 / gist:c698af5bc12d24e8d684d22365bbde38
Created September 9, 2016 03:02
PHP: Yii2 Kartik editable dropdown w/filtering
// appt type dropdown editable column
[
'class' => 'kartik\grid\EditableColumn',
'attribute' => 'appt_typeID',
'pageSummary' => true,
'width' => '100px',
// filtering grid
'filterType'=>GridView::FILTER_SELECT2,
'filter'=>ArrayHelper::map(ApptType::find()->orderBy('ID')->asArray()->all(),'ID', 'appt_abbr'),
'filterWidgetOptions'=>[