2017 © Pedro Peláez
 

yii2-extension yii2-limetheme

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

image

limefamily/yii2-limetheme

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  • Tuesday, July 3, 2018
  • by bianjunping
  • Repository
  • 1 Watchers
  • 2 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 18 % Grown

The README.md

yii2-limetheme

Custom theme components and parts of function group, (*1)

这是一套基于bootstrap框架编写的后台模板主题,和PHP小部件, (*2)

"Yii2 Limefamily Presentation" 资产.Limefamily plugins.依赖加载 :, (*3)

use yii\web\AssetBundle;

class LimeFamilyAsset extends AssetBundle
{
    public $sourcePath = '@vendor/limefamily/static-theme/dist';
    public $css = [
        'css/limefamily.min.css',
        'css/limefamily-skins.min.css',
    ];
    public $js = [
        'js/limefamily.min.js'
    ];
    public $depends = [
        'yii\web\JqueryAsset',
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
    ];
}

左侧 sidebarMenu 组件示例:

左侧 SidebarMenu 组件调用和数据事例, (*4)

    /**
     * $pparam 'itmes'. 数组内字段包括(详情去查看组件源码):
     * 
     * - label: string, required, the nav item label.
     * - url: optional, the item's URL. Defaults to "#".
     * - left-icon: 可以根据 "Font Awesome"或"bootstrap ui自带的" 图标来填充 默认的是:"fa-pie-chart".
     * - visible: boolean, optional, whether this menu item is visible. Defaults to true.
     * - linkOptions: array, optional, the HTML attributes of the item's link.
     * - options: array, optional, the HTML attributes of the item container (LI).
     * - small-icon:当没有字列表时可设置对应的标志 类型 "array"
     * - active: boolean, optional, whether the item should be on active state or not.
     * - treeviewMenuOptions: array, optional, the HTML options that will passed to the [[Dropdown]] widget.
     * - items: array|string, optional, the configuration array for creating a [[Dropdown]] widget,
     *   or a string representing the dropdown menu. Note that Bootstrap does not support sub-dropdown menus.
    */
    $menuItems = array();
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => '登录', 'url' => ['/site/login']];
    } else {
        $menuItems = Yii::$app->user->identity->getAssignedMenu();
        $products = Yii::$app->user->identity->getAssignedProducts();
        $menuItems[] = ['label' => Yii::$app->user->identity->true_name,
            'left-icon' => 'fa-cog',
            'items' =>[
                ['label' => '修改密码', 'url' => ['/site/reset-password']],
                ['label' => '退出 (' . Yii::$app->user->identity->login_code . ')', 'url' => ['/site/logout']],
            ]
        ];
    }
    echo limefamily\limetheme\widgets\SidebarMenu::widget([
        'items' => $menuItems
    ])

单一条件搜索框示例:

多配合ActiveForm小部件应用,使用示例:, (*5)

    use ActiveForm;

    $form = ActiveForm::begin(['id' => 'search','method'=>'get','action'=>'index.php?r=***']);
    echo limefamily\limetheme\widgets\SearchComponent::widget([
        'placeholder'=>'客户姓名/合同编号',
        'searchName'=>'param',
        'inputOptions'=>['value'=>isset($searchParams['param']) ? $searchParams['param'] : ''],
    ]);
    ActiveForm::end();

在GridView 中使用分页组件:

    GridView::widget([
        'dataProvider' => $dataProvider,
        'pager'=>[
           'class'=>'limefamily\limetheme\widgets\LinkPager',
        ],
        ...
    ])
    或直接用:(使用默认配置)
    limefamily\limetheme\widgets\GridView::widget([
        'dataProvider' => $dataProvider,
        ...
    ])

The Versions

03/07 2018

dev-master

9999999-dev https://github.com/namebjp/yii2-limetheme

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

03/07 2018

1.0.15

1.0.15.0 https://github.com/namebjp/yii2-limetheme

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

02/07 2018

1.0.14

1.0.14.0 https://github.com/namebjp/yii2-limetheme

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

20/06 2018

1.0.13

1.0.13.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

19/03 2018

1.0.12

1.0.12.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

12/03 2018

1.0.11

1.0.11.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

23/02 2018

1.0.10

1.0.10.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

06/02 2018

1.0.9

1.0.9.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

06/02 2018

1.0.8

1.0.8.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

by Avatar bianjunping

yii2 bootstrap theme lime

29/01 2018

1.0.7

1.0.7.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

26/01 2018

1.0.6

1.0.6.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

24/01 2018

1.0.5

1.0.5.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

24/01 2018

1.0.4

1.0.4.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

23/01 2018

1.0.3

1.0.3.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

23/01 2018

1.0.2

1.0.2.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

23/01 2018

1.0.1

1.0.1.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime

22/01 2018

1.0.0

1.0.0.0

This is a partial the theme files and some functional components of quietly elegant, if you want to modify, please modify the source code provided in the package to the editor

  Sources   Download

MIT

The Requires

 

by Avatar bianjunping

yii2 bootstrap theme lime