mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-22 01:30:23 +08:00
added classes to grid, list and detail view
to allow specific styling also fixed an issue with gridview sort indicator css. fixes #1000
This commit is contained in:
@@ -48,6 +48,11 @@ class GridView extends BaseListView
|
||||
* @var array the HTML attributes for the grid table element
|
||||
*/
|
||||
public $tableOptions = ['class' => 'table table-striped table-bordered'];
|
||||
/**
|
||||
* @var array the HTML attributes for the container tag of the grid view.
|
||||
* The "tag" element specifies the tag name of the container element and defaults to "div".
|
||||
*/
|
||||
public $options = ['class' => 'grid-view'];
|
||||
/**
|
||||
* @var array the HTML attributes for the table header row
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user