ActionColumn
The actionColumn tag represents a ActionColumn. It is used within the gridView tag.
Buttons in the column are defined by the enclosed actionButton tags.
Parameters
The actionColumn tag has the same parameters as ActionColumn, and they are specified in the same way, i.e. in order and/or as named parameters, and accept the same types.
Usage
The actionColumn tag encloses actionButton tags.
{varType Yiisoft\Data\Reader\ReadableDataInterface $dataReader}
{gridView $dataReader|header: 'Users'}
{serialColumn}
{dataColumn 'id'}
{dataColumn 'username'}
{dataColumn 'email'}
{dataColumn 'created_at'}
{checkboxColumn}
{radioColumn}
{actionColumn}
{actionButton 'view', 'View'}
{actionButton 'update', 'Edit'}
{actionButton content: 'Delete', name: 'delete}
{/actionColumn}
{/gridView}
Last modified: 18 May 2025