M
M
Mikha Pankratov2016-04-26 13:18:42
Yii
Mikha Pankratov, 2016-04-26 13:18:42

How to specify the names of the confirm buttons using standard tools?

<?= Html::a('Delete photo', ['delete-image', 'lab' => $lab->id, 'kind' => $page->kind], [
                'class' => 'btn btn-danger',
                'data' => [
                'confirm' => 'Are ya sure?',
                'method' => 'post'
                ],
        ]) ?>

How to specify the names of the buttons using standard means?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2016-04-26
@frmax

Not standard. The standard confirm dialog in browsers is quite truncated. Button labels depend on the browser/system locale.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question