PHP Class TbButtonColumn

Used to set buttons to use Glyphicons instead of the defaults images.
Inheritance: extends CButtonColumn
Datei anzeigen Open project: yinhe/yincart Class Usage Examples

Public Properties

Property Type Description
$deleteButtonIcon the delete button icon (defaults to 'trash').
$updateButtonIcon the update button icon (defaults to 'pencil').
$viewButtonIcon the view button icon (defaults to 'eye-open').

Protected Methods

Method Description
initDefaultButtons ( ) ### .initDefaultButtons()
renderButton ( string $id, array $button, integer $row, mixed $data ) ### .renderButton()

Method Details

initDefaultButtons() protected method

Initializes the default buttons (view, update and delete).
protected initDefaultButtons ( )

renderButton() protected method

Renders a link button.
protected renderButton ( string $id, array $button, integer $row, mixed $data )
$id string the ID of the button
$button array the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements.
$row integer the row number (zero-based)
$data mixed the data object associated with the row

Property Details

$deleteButtonIcon public_oe property

the delete button icon (defaults to 'trash').
public $deleteButtonIcon

$updateButtonIcon public_oe property

the update button icon (defaults to 'pencil').
public $updateButtonIcon

$viewButtonIcon public_oe property

the view button icon (defaults to 'eye-open').
public $viewButtonIcon