Open sircovsw opened 3 years ago
How do I add such a field? https://demosbs3.krajee.com/widget-details/active-field#button-dropdown-addon
I've tried like this. Does not work. 'fieldConfig' => [ 'only' => [ 'type', ], 'type' => [ 'options' => [ 'addon' => [ 'append' => [ 'content' => \yii\bootstrap\ButtonDropdown::widget( [ 'label' => 'Action', 'dropdown' => [ 'items' => [ ['label' => 'Another action', 'url' => '#'], ['label' => 'Something else', 'url' => '#'], '<li class="divider"></li>', ['label' => 'Separated link', 'url' => '#'], ], ], 'options' => ['class' => 'btn-default'] ] ), 'asButton' => true ] ] ], ] ]
'fieldConfig' => [ 'only' => [ 'type', ], 'type' => [ 'options' => [ 'addon' => [ 'append' => [ 'content' => \yii\bootstrap\ButtonDropdown::widget( [ 'label' => 'Action', 'dropdown' => [ 'items' => [ ['label' => 'Another action', 'url' => '#'], ['label' => 'Something else', 'url' => '#'], '<li class="divider"></li>', ['label' => 'Separated link', 'url' => '#'], ], ], 'options' => ['class' => 'btn-default'] ] ), 'asButton' => true ] ] ], ] ]
How do I add such a field? https://demosbs3.krajee.com/widget-details/active-field#button-dropdown-addon
I've tried like this. Does not work.
'fieldConfig' => [ 'only' => [ 'type', ], 'type' => [ 'options' => [ 'addon' => [ 'append' => [ 'content' => \yii\bootstrap\ButtonDropdown::widget( [ 'label' => 'Action', 'dropdown' => [ 'items' => [ ['label' => 'Another action', 'url' => '#'], ['label' => 'Something else', 'url' => '#'], '<li class="divider"></li>', ['label' => 'Separated link', 'url' => '#'], ], ], 'options' => ['class' => 'btn-default'] ] ), 'asButton' => true ] ] ], ] ]