93 Commits

Author SHA1 Message Date
d613719298 Update ActionColumn.php 2015-06-15 01:34:35 +02:00
afe21a986a PSR-2 anonymous functions 2015-06-09 00:14:44 +03:00
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
fdb730a12a syntax fix [skip ci] 2015-04-10 21:51:33 -04:00
af202f1ad8 Fixes #7912: Added aria-label to ActionColumn buttons 2015-03-30 19:08:44 +03:00
26392372c0 added ActionColumn::$buttonOptions
allows for configuration of the default buttons like this:

```php
[
	'class' => ActionColumn::className(),
	'template' => '<div class="btn-group text-center">{view} {update} {delete}</div>',
	'buttonOptions' => [
		'class' => 'btn btn-default btn-xs',
	],
],
```

close #7633
2015-03-08 23:23:39 +01:00
cd0093f7bd rework grid/list/detail view guide and docs 2015-03-06 07:43:00 +01:00
dec4a4f239 Fixes #7008: Removed extra white space in GridView filter cell 2015-01-31 00:31:14 +03:00
f83ad4a05e Update ActionColumn.php
Added content to give a clear example to those that don't intuitively know how to set the template property using array notation.

close #6811
2015-01-10 15:20:40 +01:00
2081d0e80c Merge pull request #6587 from creocoder/yii-grid-action-column-php-doc
\yii\grid\ActionColumn better phpDoc.
2014-12-19 13:41:34 +01:00
9ee3627891 \yii\grid\ActionColumn better phpDoc. 2014-12-19 15:39:16 +03:00
98d4650f12 \yii\grid\ActionColumn better phpDoc. 2014-12-19 14:51:57 +03:00
0e7652b67f Merge pull request #6584 from creocoder/yii-grid-action-column-incomplete-signature-fixes
\yii\grid\ActionColumn incomplete anonymous functions signature fix
2014-12-19 12:32:25 +03:00
267da3cc3f \yii\grid\ActionColumn incomplete anonymous functions signature fix. 2014-12-19 09:26:58 +03:00
eeb4e29d55 improve gridview phpdoc 2014-12-17 09:18:00 +01:00
ebdd56f0db Changed #4277 behavior 2014-11-27 20:42:31 +03:00
af50f5a290 Fixes #4277: yii\grid\GridView is no longer throwing an exception in non-debug mode when results are empty and columns aren't defined 2014-11-27 13:47:40 +03:00
de8966079f Fixes #5367: Added yii\grid\DataColumn::encodeLabel 2014-11-13 21:28:47 -05:00
c6cb205653 Added encodeLabel param to \yii\grid\DataColumn
Use case:

```
    echo GridView::widget([
        ...
        'columns' => [
            ...
            [
                'attribute' => 'created_at',
                'label' => '<span data-toggle="tooltip" class="glyphicon glyphicon-time" title="'.Yii::t('app', 'Created At').'"></span>',
                'encodeLabel' => false,
                ...
            ],
```
2014-11-13 21:26:39 -05:00
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
48ec791e4a Fixes #5587: json_encode is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE where it makes sense, also it is now default for Json::encode() 2014-10-19 18:50:46 +04:00
be2828d593 Fixes #5484: Fixed potential string suffix detection failure on 5.5.11 2014-10-11 09:35:55 -04:00
e28edb3ed1 Improve docs for CheckboxColumn::$checkboxOptions 2014-09-12 11:01:00 +02:00
b5af2f6ab3 fixed size format plural rule to not format number itself
This fix ensures the format configured in the formatter class is used in the message instead
of the default ICU format.

fixes #4960
2014-09-10 21:53:29 +02:00
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
5c79ab202c Added key param to ActionColumn button Closure
fixes #4602, close #4624
2014-08-06 22:30:35 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
07f01bcf2b Used substr_compare instead of substr when we don't care about result 2014-07-23 16:37:49 +04:00
085f2c0142 gridview and listview use widget ID in base tag 2014-06-27 20:26:26 +02:00
1c1dcc2c15 fixed gridview documentation
fixes #4045
2014-06-25 18:33:50 +02:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
3372785976 Merge pull request #3544 from MDMunir/patch-1
Add $key to function parameter
2014-05-24 09:08:16 -04:00
020960380b added example to ActionColumn 2014-05-23 13:10:06 +02:00
53e193049f Add $key to function parameter
I think it's better to enclose `$key` as function parameter.
2014-05-22 17:57:30 +07:00
b1bf636983 Fix #3531, allow more characters in \yii\grid\GridView's short array syntax for columns. 2014-05-21 19:39:38 +02:00
c15aceb094 Refactored filter error display for GridView. 2014-04-22 20:46:23 -04:00
4f6e1d305f Refactored the code for #3154 2014-04-22 18:56:05 -04:00
61841345eb Merge pull request #3164 from ivan-kolmychek/3154-gridview-filter-error-indication
GridView filter error indication added (#3154)
2014-04-23 00:25:11 +02:00
bb4e8eb736 DataColumn - error detection moved into renderFilterCellContent() 2014-04-22 18:47:11 +03:00
cd1152acb5 GridView/DataColumn - moved error list display into GridView 2014-04-22 18:04:43 +03:00
031fddd48c GridView - error rendering scheme changed 2014-04-22 14:56:56 +03:00
0a3f4e85f1 made grid\DataColumn::getDataCellValue() public
allow using it from the gridview directly
2014-04-22 13:51:54 +02:00
a615ef944a Fixed GridView cells calling order 2014-04-19 14:41:58 +04:00
1886877196 Render gridview table footer after table body 2014-04-19 14:41:58 +04:00
104a38a714 Issue #3154 - DataColumn checkForFilterErrors() now use Html::addCssClass 2014-04-19 12:22:40 +03:00
3705f17700 Issue #3154 - GridView - list of filter model validation errors added to summary 2014-04-18 12:57:47 +03:00
c57e1fcb78 Issue #3154 - DataColumn filter model validation error indication added 2014-04-18 12:57:19 +03:00
c1445871f4 Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
2014-04-16 19:29:07 -03:00
e87e120040 refactored GridView to have clear separation between value and content 2014-03-27 01:44:06 +01:00