File tree Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Expand file tree Collapse file tree 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -222,17 +222,10 @@ private function renderActionColumn($index = null)
222
222
private function renderAddButton ()
223
223
{
224
224
$ options = [
225
- 'class ' => 'multiple-input-list__btn js-input-plus ' ,
225
+ 'class ' => 'btn multiple-input-list__btn js-input-plus ' ,
226
226
];
227
227
Html::addCssClass ($ options , $ this ->addButtonOptions ['class ' ]);
228
- return Button::widget (
229
- [
230
- 'tagName ' => 'div ' ,
231
- 'encodeLabel ' => false ,
232
- 'label ' => $ this ->addButtonOptions ['label ' ],
233
- 'options ' => $ options
234
- ]
235
- );
228
+ return Html::tag ('div ' , $ this ->addButtonOptions ['label ' ], $ options );
236
229
}
237
230
238
231
/**
@@ -244,17 +237,10 @@ private function renderAddButton()
244
237
private function renderRemoveButton ()
245
238
{
246
239
$ options = [
247
- 'class ' => 'multiple-input-list__btn js-input-remove ' ,
240
+ 'class ' => 'btn multiple-input-list__btn js-input-remove ' ,
248
241
];
249
242
Html::addCssClass ($ options , $ this ->removeButtonOptions ['class ' ]);
250
- return Button::widget (
251
- [
252
- 'tagName ' => 'div ' ,
253
- 'encodeLabel ' => false ,
254
- 'label ' => $ this ->removeButtonOptions ['label ' ],
255
- 'options ' => $ options
256
- ]
257
- );
243
+ return Html::tag ('div ' , $ this ->removeButtonOptions ['label ' ], $ options );
258
244
}
259
245
260
246
/**
You can’t perform that action at this time.
0 commit comments