TbButtonColumn
extends CButtonColumn
in package
Bootstrap button column widget.
Table of Contents
Properties
- $deleteButtonIcon : string
- $updateButtonIcon : string
- $viewButtonIcon : string
Methods
- initDefaultButtons() : mixed
- Initializes the default buttons (view, update and delete).
- renderButton() : mixed
- Renders a link button.
Properties
$deleteButtonIcon
public
string
$deleteButtonIcon
= \TbHtml::ICON_TRASH
the delete button icon (defaults to TbHtml::ICON_TRASH).
$updateButtonIcon
public
string
$updateButtonIcon
= \TbHtml::ICON_PENCIL
the update button icon (defaults to TbHtml::ICON_PENCIL).
$viewButtonIcon
public
string
$viewButtonIcon
= \TbHtml::ICON_EYE_OPEN
the view button icon (defaults to TbHtml::ICON_EYE_OPEN).
Methods
initDefaultButtons()
Initializes the default buttons (view, update and delete).
protected
initDefaultButtons() : mixed
renderButton()
Renders a link button.
protected
renderButton(string $id, array<string|int, mixed> $button, int $row, mixed $data) : mixed
Parameters
- $id : string
-
the ID of the button
- $button : array<string|int, mixed>
-
the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements.
- $row : int
-
the row number (zero-based)
- $data : mixed
-
the data object associated with the row