From 355a7106ef8b36a577d003fe809892fbae9d932d Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Mon, 12 Jan 2015 16:42:34 +0530 Subject: [PATCH] Update to release v1.2.0 --- views/_columns.php | 42 +++++++++++++++++++++++++----------------- views/_form.php | 11 +++++++---- 2 files changed, 32 insertions(+), 21 deletions(-) diff --git a/views/_columns.php b/views/_columns.php index cf2dc7b..7d36311 100644 --- a/views/_columns.php +++ b/views/_columns.php @@ -1,4 +1,11 @@ + * @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 + * @version 1.2.0 + */ + use yii\helpers\Html; use yii\helpers\ArrayHelper; @@ -8,12 +15,13 @@ if (!empty($icon)) { $label = $icon . ' ' . $label; } -echo Html::beginTag('div', ['class'=>'btn-group', 'role'=>'group']); +echo Html::beginTag('div', ['class' => 'btn-group', 'role' => 'group']); echo Html::button($label . ' ', $options); -foreach($columnSelector as $value => $label) { +foreach ($columnSelector as $value => $label) { if (in_array($value, $hiddenColumns)) { $checked = in_array($value, $selectedColumns); - echo Html::checkbox('export_columns_selector[]', $checked, ['data-key'=>$value, 'style'=>'display:none']) . "\n"; + echo Html::checkbox('export_columns_selector[]', $checked, + ['data-key' => $value, 'style' => 'display:none']) . "\n"; unset($columnSelector[$value]); } if (in_array($value, $noExportColumns)) { @@ -24,29 +32,29 @@ ?> - -
  • -
    - -
    -
  • -
  • - + ?> +
  • +
    + +
    +
  • +
  • + $label) { +foreach ($columnSelector as $value => $label) { $checked = in_array($value, $selectedColumns); $disabled = in_array($value, $disabledColumns); $labelTag = $disabled ? '