Maslosoft Framework Documentation
Flexible Application Foundation
Action Grid
Action Grid is a kind of Grid View, that is prepared to call arbitrary action when clicking on row.
It has extra property action, which should point to javascript reference.
Open up a JavaScript console, then click on row to see results.
No items found
| Username | First name | Last name | Activated | |
|---|---|---|---|---|
echo ActionGrid::widget([
'action' => 'console.log',
'dataProvider' => new DataProvider(new ExampleUser(), [
'pagination' => [
'size' => 10
]
]),
'columns' => [
'username',
'firstName',
'lastName',
'email',
'active'
]
]);