yii2-multiple-input icon indicating copy to clipboard operation
yii2-multiple-input copied to clipboard

Add button not showing in actionUpdate

Open inajaf opened this issue 2 years ago • 0 comments

The issue is with add button which is not showing on the update action. Only showing in a createAction. Probably issue with js.

my update.php

 <?= $form->field($projectTag, 'name')->widget(MultipleInput::class, [
                                        'data' => ArrayHelper::map($model->projectTags, 'id', 'name'),
                                        'max' => 50,
                                        'min' => 1, // should be at least 2 rows
                                        'allowEmptyList' => false,
                                        'enableGuessTitle' => false,
                                        'addButtonPosition' => MultipleInput::POS_ROW,
                                        'addButtonOptions' => [
                                            'class' => 'btn btn-success',
                                            'label' => '﹢' // also you can use html code
                                        ],
                                        'removeButtonOptions' => [
                                            'class' => 'btn btn-danger',
                                            'label' => '﹣',
                                        ]
                                    ])->label(Yii::t('app', 'Tags', ['class' => 'form-label']))
  ?>

Снимок экрана 2022-05-24 093933 Снимок экрана 2022-05-24 094014

inajaf avatar May 24 '22 05:05 inajaf