定制 vbazovic/yii2-app-launcher 二次开发

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

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

vbazovic/yii2-app-launcher

Composer 安装命令:

composer require vbazovic/yii2-app-launcher

包简介

Scrollable dropdown like google app launcher for yii2

README 文档

README

Install it from composer:

composer require vbazovic/yii2-app-launcher @dev

USAGE

Example:

<?= \vbazovic\launcher\AppLauncher::widget([
                    'defaultState' => 'none',
                    'drawerPosition' => \vbazovic\launcher\AppLauncher::AL_RIGHT,  // AL_RIGHT, AL_LEFT, AL_CENTER (default)
                    'options' => [
                        'class' => 'my-launcher',
                        'id' => 'my-id',
                    ],
                    'appEvenMoreApps' => 'http://my-more-apps.com',
                    'items'=>[
                        'title dropbox'=>['link'=>'http://dropbox.com','content'=>'<span class="glyphicon glyphicon-file"><br/>Dropbox</span>'],
                        'title controller/action'=>['link'=>'site/about','content'=>'<span class="glyphicon glyphicon-plus-sign"><br/></span>'],
                        'style'=>['link'=>'some-link','content'=>'<span style="background-color: blue" class="glyphicon glyphicon-minus-sign"><br/>aaaa</span>'],
                        'another title 1'=>['link'=>'link-1','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 2'=>['link'=>'link-2','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 3'=>['link'=>'link-3','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 4'=>['link'=>'link-4','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 5'=>['link'=>'link-5','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 6'=>['link'=>'link-6','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 7'=>['link'=>'link-7','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 8'=>['link'=>'link-8','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 9'=>['link'=>'link-9','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 10'=>['link'=>'link-10','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        'another title 11'=>['link'=>'link-11','content'=>'<span class="glyphicon glyphicon-minus-sign"></span>'],
                        ]])?>

CUSTOMIZATION

Put in your css file:

/* size of a element */
.my-launcher {
  width: 55px !important;
}

/* green point to the left  */
.my-launcher > .app-launcher::before {
    left: 9px !important;
    border-bottom: 10px solid rgba(0,141,76, 0.8) !important;
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-01-03