PHP Class TbButtonGroupColumn

Renders the buttons as a button group
Inheritance: extends TbButtonColumn
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$buttonSize the button size ('mini','small','normal','large')
$deleteButtonType the delete button type ('info','primary','warning','danger','success' defaults to 'danger')
$updateButtonType the update button type ('info','primary','warning','danger','success' defaults to 'warning').
$viewButtonType the view button type ('info','primary','warning','danger','success' defaults to 'info').

Protected Methods

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

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

renderDataCellContent() protected method

Renders the data cell content. This method renders the view, update and delete buttons in the data cell.
protected renderDataCellContent ( integer $row, mixed $data )
$row integer the row number (zero-based)
$data mixed the data associated with the row

Property Details

$buttonSize public property

the button size ('mini','small','normal','large')
public $buttonSize

$deleteButtonType public property

the delete button type ('info','primary','warning','danger','success' defaults to 'danger')
public $deleteButtonType

$updateButtonType public property

the update button type ('info','primary','warning','danger','success' defaults to 'warning').
public $updateButtonType

$viewButtonType public property

the view button type ('info','primary','warning','danger','success' defaults to 'info').
public $viewButtonType