Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button not showing in actionUpdate #369

Closed
devenairevo opened this issue May 24, 2022 · 1 comment
Closed

Add button not showing in actionUpdate #369

devenairevo opened this issue May 24, 2022 · 1 comment

Comments

@devenairevo
Copy link

devenairevo commented May 24, 2022

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

@unclead
Copy link
Owner

unclead commented Apr 21, 2024

fixed in #380

@unclead unclead closed this as completed Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants