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
f83ad4a0
Commit
f83ad4a0
authored
Jan 09, 2015
by
caboosesw
Committed by
Carsten Brandt
Jan 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
parent
dcc31e1f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ActionColumn.php
framework/grid/ActionColumn.php
+7
-0
No files found.
framework/grid/ActionColumn.php
View file @
f83ad4a0
...
@@ -45,6 +45,13 @@ class ActionColumn extends Column
...
@@ -45,6 +45,13 @@ class ActionColumn extends Column
* in the context of action column). They will be replaced by the corresponding button rendering callbacks
* in the context of action column). They will be replaced by the corresponding button rendering callbacks
* specified in [[buttons]]. For example, the token `{view}` will be replaced by the result of
* specified in [[buttons]]. For example, the token `{view}` will be replaced by the result of
* the callback `buttons['view']`. If a callback cannot be found, the token will be replaced with an empty string.
* the callback `buttons['view']`. If a callback cannot be found, the token will be replaced with an empty string.
*
* As an example, to only have the view, and update button you can add the ActionColumn to your GridView columns as follows:
*
* ```
* ['class' => 'yii\grid\ActionColumn', 'template' => '{view} {update}'],
* ```
*
* @see buttons
* @see buttons
*/
*/
public
$template
=
'{view} {update} {delete}'
;
public
$template
=
'{view} {update} {delete}'
;
...
...
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