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

1.8 2018-08-15 10:59 UTC

This package is auto-updated.

Last update: 2024-10-22 05:22:15 UTC


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:

  1. Make sure that your Yii2 project has yii2-jui extenstion.
  2. Create a directory named saidbakr under the vendor directory of your Yii2 project.
  3. 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']) ;?>