-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
4,410 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,21 @@ | |
use Closure; | ||
|
||
/** | ||
* A BooleanColumn to convert true/false values as user friendly indicators with an automated drop down filter for the | ||
* A BooleanColumn will convert true/false values as user friendly indicators with an automated drop down filter for the | ||
* [[GridView]] widget. | ||
* | ||
* To add a BooleanColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => BooleanColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,18 @@ | |
* The CheckboxColumn displays a column of checkboxes in a grid view and extends the [[YiiCheckboxColumn]] with | ||
* various enhancements. | ||
* | ||
* To add a CheckboxColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => CheckboxColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,19 @@ | |
use kartik\base\Config; | ||
|
||
/** | ||
* The EditableColumn converts the data to editable using the Editable widget [[\kartik\editable\Editable]] | ||
* The EditableColumn converts the data to editable using the Editable widget [[\kartik\editable\Editable]]. | ||
* | ||
* To add an EditableColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => EditableColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,18 @@ | |
/** | ||
* An ExpandRowColumn can be used to expand a row and add content in a new row below it either directly or via ajax. | ||
* | ||
* To add an ExpandRowColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => ExpandRowColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,18 @@ | |
* A FormulaColumn to calculate values based on other column indexes for the Grid widget [[\kartik\grid\GridView]]. | ||
* This extends and builds upon the [[DataColumn]] in the [[GridView]] widget. | ||
* | ||
* To add a FormulaColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => FormulaColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
* | ||
* A basic usage of the widget looks like the following: | ||
* | ||
* ```php | ||
* ~~~ | ||
* <?= GridView::widget([ | ||
* 'dataProvider' => $dataProvider, | ||
* 'columns' => [ | ||
|
@@ -48,7 +48,7 @@ | |
* // ... | ||
* ] | ||
* ]) ?> | ||
* ``` | ||
* ~~~ | ||
* | ||
* @see http://demos.krajee.com/grid | ||
* @author Kartik Visweswaran <[email protected]> | ||
|
@@ -1044,18 +1044,17 @@ public function renderExport() | |
$iconPrefix = $this->export['fontAwesome'] ? 'fa fa-' : 'glyphicon glyphicon-'; | ||
$title = ($icon == '') ? $title : "<i class='{$iconPrefix}{$icon}'></i> {$title}"; | ||
$action = $this->_module->downloadAction; | ||
if (!is_array($action)) { | ||
$action = [$action]; | ||
} | ||
$encoding = ArrayHelper::getValue($this->export, 'encoding', 'utf-8'); | ||
$bom = ArrayHelper::getValue($this->export, 'bom', true); | ||
$target = ArrayHelper::getValue($this->export, 'target', self::TARGET_POPUP); | ||
$form = Html::beginForm( | ||
$action, 'post', [ | ||
'class' => 'kv-export-form', | ||
'style' => 'display:none', | ||
'target' => ($target == self::TARGET_POPUP) ? 'kvDownloadDialog' : $target, | ||
] | ||
is_array($action) ? $action : [$action], | ||
'post', | ||
[ | ||
'class' => 'kv-export-form', | ||
'style' => 'display:none', | ||
'target' => ($target == self::TARGET_POPUP) ? 'kvDownloadDialog' : $target, | ||
] | ||
) . "\n" . | ||
Html::hiddenInput('export_filetype') . "\n" . | ||
Html::hiddenInput('export_filename') . "\n" . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,18 @@ | |
* RadioColumn displays a column of radio inputs in a grid view. It is different than the CheckboxColumn in the sense | ||
* that it allows only a single row to be selected at a time. | ||
* | ||
* To add a RadioColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => RadioColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,18 @@ | |
* A SerialColumn displays a column of row numbers (1-based) and extends the [[YiiSerialColumn]] with various | ||
* enhancements. | ||
* | ||
* To add a SerialColumn to the gridview, add it to the [[GridView::columns|columns]] configuration as follows: | ||
* | ||
* ```php | ||
* 'columns' => [ | ||
* // ... | ||
* [ | ||
* 'class' => SerialColumn::className(), | ||
* // you may configure additional properties here | ||
* ], | ||
* ] | ||
* ``` | ||
* | ||
* @author Kartik Visweswaran <[email protected]> | ||
* @since 1.0 | ||
*/ | ||
|
Oops, something went wrong.