![]() Here is the thing: I'm using Nav::widget to cteate menu like this echo Nav::widget([ * boolean whether the nav items labels should be HTML-encoded.I'm using Yii 2.0.2 and I think recently I found a bug. * If a menu item is a string, it will be rendered directly without HTML encoding. If set, supersedes the $encodeLabels option for only this item. * - encode: boolean, optional, whether the label will be HTML-encoded. Note that Bootstrap does not support sub-dropdown menus. * or a string representing the dropdown menu. ![]() * - items: array|string, optional, the configuration array for creating a ] widget, * - dropDownOptions: array, optional, the HTML options that will passed to the ] widget. * - active: boolean, optional, whether the item should be on active state or not. * - options: array, optional, the HTML attributes of the item container (LI). * - linkOptions: array, optional, the HTML attributes of the item's link. * - visible: boolean, optional, whether this menu item is visible. * - label: string, required, the nav item label. ![]() * menu item which can be either a string or an array with the following structure: * Note: Multilevel dropdowns beyond Level 1 are not supported in Bootstrap 3. * 'options' =>, // set this to nav-tab to get tab-styled navigation ปรับแต่ง vendor/yiisoft/yii2-bootstrap/Nav.php [ If (!isset($this->innerContainerOptions)) " $tag = ArrayHelper::remove($options, 'tag', 'nav') * array the HTML attributes of the inner container. Set this to false for a 100% width navbar. * boolean whether the navbar content should be included in an inner div container which by default Public $screenReaderToggleText = 'Toggle navigation' * string text to show for screen readers for the button to toggle the navbar. * array the HTML attributes of the brand link. * You may set it to `null` if you want to have no link at all. * and will be used for the "href" attribute of the brand link. * array|string|boolean $url the URL for the brand's hyperlink tag. * string|boolean the text of the brand or false if it's not used. * - tag: string, defaults to "div", the name of the container tag. ![]() The following special options are recognized: * array the HTML attributes for the container tag. * \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. * - tag: string, defaults to "nav", the name of the container tag. * array the HTML attributes for the widget container tag. ปรับแต่ง vendor/yiisoft/yii2-bootstrap/NavBar.php 'NavBar Test']) * align the logout "link" (button in form) of the navbar */ * add sorting icons to gridview sort links */ isset($this->params) ? $this->params : , 'class' => 'navbar navbar-dark bg-primary navbar-expand-md'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |