定制 alex290/yii2-multinav 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alex290/yii2-multinav

最新稳定版本:1.1.3

Composer 安装命令:

composer require alex290/yii2-multinav

包简介

Yii2 Multilevel Nav hover

README 文档

README

Yii2 Multilevel Nav hover

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist alex290/yii2-multinav "*"

or add

"alex290/yii2-multinav": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

echo Nav::widget([
        'items' => [
            [
                'label' => 'Home',
                'url' => ['site/index'],
                'linkOptions' => [],
            ],
            [
                'label' => 'Dropdown',
                 'items' => [
                     [
                         'label' => 'Dropdown',
                         'items' => [
                             ['label' => 'Level 1 - Dropdown A', 'url' => '#'],
                             ['label' => 'Level 1 - Dropdown B', 'url' => '#'],
                         ],
                     ],
                     ['label' => 'Level 1 - Dropdown A', 'url' => '#'],
                     ['label' => 'Level 1 - Dropdown B', 'url' => '#'],
                 ],
            ],
        ],
        'options' => [
            'class' =>'nav-pills', // set this to nav-tabs to get tab-styled navigation
            'backgroundColor' => '#222', // Цвет фона меню
            'backgroundColorHover' => '#3d3d3d', // Цвет пункта меню при наведении
            'backgroundColorActive' => '#3d3d3d', // Цвет пункта меню активного
            'color' => '#fff', // Цвет текста меню
            'colorActive' => '#fff', // Цвет текста меню активного
            'colorHover' => '#fff', // Цвет текста меню при наведении
        ],
    ]);

统计信息

  • 总下载量: 65
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-14