We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I see in the documentarion of Menu class that there is an attribute search, a form with some configuration that its not defined on the class...
echo Menu::widget([ 'items' => [ // Important: you need to specify url as 'controller/action', // not just as 'controller' even if default action is used. [ 'icon' => '', 'label' => 'Home', 'url' => ['site/index'] ], // 'Products' menu item will be selected as long as the route is 'product/index' ['label' => 'Products', 'url' => ['product/index'], 'items' => [ ['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']], ['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']], ]], ['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest], ], 'search' => [ // required, whether search box is visible. Defaults to 'true'. 'visible' => true, // optional, the configuration array for [[ActiveForm]]. 'form' => [], // optional, input options with default values 'input' => [ 'name' => 'search', 'value' => '', 'options' => [ 'placeholder' => 'Search...', ] ], ] ]);
are you going to add it?
The text was updated successfully, but these errors were encountered:
@jotapeserra can you create pull-request?
Sorry, something went wrong.
No branches or pull requests
I see in the documentarion of Menu class that there is an attribute search, a form with some configuration that its not defined on the class...
echo Menu::widget([
'items' => [
// Important: you need to specify url as 'controller/action',
// not just as 'controller' even if default action is used.
[
'icon' => '',
'label' => 'Home',
'url' => ['site/index']
],
// 'Products' menu item will be selected as long as the route is 'product/index'
['label' => 'Products', 'url' => ['product/index'], 'items' => [
['label' => 'New Arrivals', 'url' => ['product/index', 'tag' => 'new']],
['label' => 'Most Popular', 'url' => ['product/index', 'tag' => 'popular']],
]],
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
],
'search' => [
// required, whether search box is visible. Defaults to 'true'.
'visible' => true,
// optional, the configuration array for [[ActiveForm]].
'form' => [],
// optional, input options with default values
'input' => [
'name' => 'search',
'value' => '',
'options' => [
'placeholder' => 'Search...',
]
],
]
]);
are you going to add it?
The text was updated successfully, but these errors were encountered: