PHP Class TbButtonGroupColumn

Renders the buttons as a button group
Inheritance: extends TbButtonColumn
Afficher le fichier Open project: yinhe/yincart

Méthodes publiques

Свойство 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').

Méthodes protégées

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

Method Details

initDefaultButtons() protected méthode

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

renderButton() protected méthode

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 méthode

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_oe property

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

$deleteButtonType public_oe property

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

$updateButtonType public_oe property

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

$viewButtonType public_oe property

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