Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
3d59b19a
Commit
3d59b19a
authored
Jan 05, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added classes to grid, list and detail view
to allow specific styling also fixed an issue with gridview sort indicator css. fixes #1000
parent
d84aac09
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
1 deletion
+23
-1
site.css
apps/advanced/backend/web/css/site.css
+4
-0
site.css
apps/advanced/frontend/web/css/site.css
+4
-0
site.css
apps/basic/web/css/site.css
+4
-0
GridView.php
framework/yii/grid/GridView.php
+5
-0
DetailView.php
framework/yii/widgets/DetailView.php
+1
-1
ListView.php
framework/yii/widgets/ListView.php
+5
-0
No files found.
apps/advanced/backend/web/css/site.css
View file @
3d59b19a
...
...
@@ -60,6 +60,10 @@ a.desc:after {
content
:
"\e156"
;
}
.grid-view
th
{
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
...
...
apps/advanced/frontend/web/css/site.css
View file @
3d59b19a
...
...
@@ -60,6 +60,10 @@ a.desc:after {
content
:
"\e156"
;
}
.grid-view
th
{
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
...
...
apps/basic/web/css/site.css
View file @
3d59b19a
...
...
@@ -60,6 +60,10 @@ a.desc:after {
content
:
"\e156"
;
}
.grid-view
th
{
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
...
...
framework/yii/grid/GridView.php
View file @
3d59b19a
...
...
@@ -49,6 +49,11 @@ class GridView extends BaseListView
*/
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
*/
public
$headerRowOptions
=
[];
...
...
framework/yii/widgets/DetailView.php
View file @
3d59b19a
...
...
@@ -90,7 +90,7 @@ class DetailView extends Widget
* @var array the HTML attributes for the container tag of this widget. The "tag" option specifies
* what container tag should be used. It defaults to "table" if not set.
*/
public
$options
=
[
'class'
=>
'table table-striped table-bordered'
];
public
$options
=
[
'class'
=>
'table table-striped table-bordered
detail-view
'
];
/**
* @var array|Formatter the formatter used to format model attribute values into displayable texts.
* This can be either an instance of [[Formatter]] or an configuration array for creating the [[Formatter]]
...
...
framework/yii/widgets/ListView.php
View file @
3d59b19a
...
...
@@ -52,6 +52,11 @@ class ListView extends BaseListView
* @var string the HTML code to be displayed between any two consecutive items.
*/
public
$separator
=
"
\n
"
;
/**
* @var array the HTML attributes for the container tag of the list view.
* The "tag" element specifies the tag name of the container element and defaults to "div".
*/
public
$options
=
[
'class'
=>
'list-view'
];
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment