2017 © Pedro Peláez
 

yii2-extension yii2-inspinia

Inspinia template widgets

image

lemon/yii2-inspinia

Inspinia template widgets

  • Wednesday, February 8, 2017
  • by DearLemon
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Inspinia Admin Theme

v2.6.2.1, (*1)

Forked: https://github.com/lkk/yii2-inspinia, (*2)

这是一个商业模板,使用前请先购买版权, (*3)

https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S, (*4)

Installation

composer require lemon/yii2-inspinia "*", (*5)

main.php增加, (*6)

'components' => [
    'view' => [
         'theme' => [
             'pathMap' => [
            '@app/views' => '@vendor/lemon/yii2-inspinia/views'
            ],
        ],
    ],
],

或者 将vendor/lemon/yii2-inspinia/views下的文件,替换自己views下的文件, (*7)

如指定页面error使用layouts/empty,方法如下, (*8)

public function beforeAction($action)
{
    if (parent::beforeAction($action)) {
        if ($action->id=='error')
            $this->layout ='empty';
        return true;
    } else {
        return false;
    }
}

inspinia Panel使用, (*9)

<?php Panel::begin([
    'title'=>$this->title,
    'description'=> '标题',
    'toolbar'=>[
        ...
    ]
])?>

    <?php echo GridView::widget([
        'dataProvider' => $dataProvider,
        'tableOptions' => ['class' => 'table table-hover']
    ]); ?>

<?php Panel::end()?>

toolbar参数, (*10)

'toolbar'=>[
        [
            'title' => '',
            'link'  => Url::to(['/']),
            'icon'  => 'wrench',
            'items' => [
                [
                    'title' => 'Item 1',
                    'link'  => Url::to(['/']),
                    'icon'  => 'earth',
                ],
                [
                    'title' => 'Item 2',
                    'link'  => Url::to(['/']),
                    'icon'  => 'pencil',
                ],
            ],
        ],
        [
            'title' => 'QQ',
            'link'  => Url::to(['http://qq.com']),
            'icon'  => 'qq',
        ]
    ]# yii2-inspinia

The Versions

08/02 2017

dev-master

9999999-dev

Inspinia template widgets

  Sources   Download

Apache-2.0

The Requires

  • yiisoft/yii2 *
  • yiisoft/yii2-jui *
  • bower-asset/fontawesome *
  • bower-asset/ionrangeslider *
  • bower-asset/knob *
  • bower-asset/switchery *
  • bower-asset/cropper *
  • bower-asset/momentjs *
  • bower-asset/chosen *
  • bower-asset/jquery-sparkline *
  • bower-asset/flot *
  • bower-asset/flot.tooltip *
  • bower-asset/flot-spline *
  • bower-asset/jquery-timeago ^1.5

 

by lemon

yii2 inspinia assets widgets