ayrozjlc/yii2-adminlte3-asset

AdminLTE3 backend theme asset bundle for Yii 2.0 Framework

Installs: 110

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 2

Open Issues: 0

Type:yii2-extension

v1.0 2021-07-24 17:54 UTC

This package is auto-updated.

Last update: 2024-10-28 04:56:36 UTC


README

Template UI for Yii2 Framework, based on AdminLTE3

AdminLTE is a fully responsive administration template. Based on Bootstrap 4 framework. Highly customizable and easy to use. Fits many screen resolutions from small mobile devices to large desktops. "AdminLTE Presentation"

Installation

Composer

composer require ayrozjlc/yii2-adminlte3-asset

or add

"ayrozjlc/yii2-adminlte3-asset": "dev-master",

to the require section of your composer.json file.

Quick Start

  • In view (for example: @app/views/layouts/main.php)
// ...
use ayrozjlc\adminlte3\AdminLte3Asset;
// ...
AdminLte3Asset::register($this);

or add to your assets/AppAsset.php

public $depends = [
    // ...
    'ayrozjlc\adminlte3\AdminLte3Asset',
];

Preview

  • You can have a preview by reconfiguring the path mappings of the view component:
'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@app/views' => '@vendor/ayrozjlc/yii2-adminlte3-asset/src/yii2-app'
            ],
        ],
    ],
],

Assets

  • Example in view
use ayrozjlc\adminlte3\assets_extra\IcheckAsset;

IcheckAsset::register($this);

or add to your assets/AppAsset.php

public $depends = [
    'ayrozjlc\adminlte3\assets_extra\PaceAsset',
    'ayrozjlc\adminlte3\assets_extra\IcheckAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesAsset',
    'ayrozjlc\adminlte3\assets_extra\DataTablesBootstrapAsset',
];

Widgets

  • Menu

  • ActionColumn

  • Alert

  • Datatables

  • example(menu)

ayrozjlc\adminlte3\widgets\Menu::widget([
    'items' => [
        'label' => 'menu',
        'url' => ['/site/index'],
        'icon' => 'users' //$iconClassPrefix = 'fas fa-'
    ],
    'itemOptions' => ['class' => 'nav-item'],
]);

Credits