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 ? '