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
51f64ffe
Commit
51f64ffe
authored
Jul 27, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #670 from lucianobaraglia/upstream
DetailView example usage consistent with other widgets [skip ci]
parents
0b1fad20
3c642f0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DetailView.php
framework/yii/widgets/DetailView.php
+2
-2
No files found.
framework/yii/widgets/DetailView.php
View file @
51f64ffe
...
...
@@ -30,7 +30,7 @@ use yii\helpers\Inflector;
* A typical usage of DetailView is as follows:
*
* ~~~
*
\yii\widgets\
DetailView::widget(array(
*
echo
DetailView::widget(array(
* 'model' => $model,
* 'attributes' => array(
* 'title', // title attribute (in plain text)
...
...
@@ -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
=
array
(
'class'
=>
'table table-striped'
);
public
$options
=
array
(
'class'
=>
'table table-striped
table-bordered
'
);
/**
* @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]]
...
...
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