Answer the question
In order to leave comments, you need to log in
Why doesn't activateItems work?
Hello. I can not understand why the activation of the element on which I am not working
$menuItems = [
['label' => 'Пункт 1', 'url' => ['/pynkt1'], 'linkOptions' => ['class' => 'list-group-item list-group-item-action']],
['label' => 'Пункт 2', 'url' => ['/pynkt2'], 'linkOptions' => ['class' => 'list-group-item list-group-item-action']],
['label' => 'Пункт 3', 'url' => ['/pynkt3'], 'linkOptions' => ['class' => 'list-group-item list-group-item-action']],
['label' => 'Пункт 4', 'url' => ['/pynkt4'], 'linkOptions' => ['class' => 'list-group-item list-group-item-action']],
['label' => 'Пункт 5', 'url' => ['/pynkt5'], 'linkOptions' => ['class' => 'list-group-item list-group-item-action']],
];
echo Nav::widget([
'options' => ['class' => 'list-group'],
'items' => $menuItems,
'activateItems' => true,
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question