saidbakr / yii-jui-themes-list
Yii2 widget to list and apply yii-jui themes
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:widget
Requires
- bower-asset/jquery-ui: ~1.0
- yiisoft/yii2: ~2
README
A yii2 widget that displays a list of jui themes and applying change to the selected theme then saving the choice by a mean of cookie.
##Installation From version 1.6 simply use composer in the root directory of your yii2 project as follows:
composer require saidbakr/yii-jui-themes-list=1.6
Till this time I could not able to maintain it via composer. Howver, the installation is very easy as follows:
- Make sure that your Yii2 project has yii2-jui extenstion.
- Create a directory named
saidbakr
under thevendor
directory of your Yii2 project. - Copy all the files in this respiratory to that folder
vendor\saidbakr
.
##Usage Simply you can use it in your views to render a select options list for the themes as follows:
<?php
// Use keyword
use saidbakr\tools\JuiThemeSelectWidget;
?>
<?= JuiThemeSelectWidget::widget() ;?>
// Or supplying the options like the following
<?= JuiThemeSelectWidget::widget(['label' => 'Select New JUI Theme', 'themeListId' => 'fox']) ;?>