\TbButtonGroupColumn

## Enhanced bootstrap button column widget.

Renders the buttons as a button group

Summary

Methods
Properties
Constants
No public methods found
$viewButtonIcon
$updateButtonIcon
$deleteButtonIcon
$buttonSize
$viewButtonContext
$updateButtonContext
$deleteButtonContext
No constants found
initDefaultButtons()
renderButton()
renderDataCellContent()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$viewButtonIcon

$viewButtonIcon : string

Type

string — the view button icon (defaults to 'eye-open').

$updateButtonIcon

$updateButtonIcon : string

Type

string — the update button icon (defaults to 'pencil').

$deleteButtonIcon

$deleteButtonIcon : string

Type

string — the delete button icon (defaults to 'trash').

$buttonSize

$buttonSize : string

Type

string — the button size ('mini','small','normal','large')

$viewButtonContext

$viewButtonContext : string

Type

string — the view button context ('info','primary','warning','danger','success' defaults to 'info').

$updateButtonContext

$updateButtonContext : string

Type

string — the update button context ('info','primary','warning','danger','success' defaults to 'warning').

$deleteButtonContext

$deleteButtonContext : string

Type

string — the delete button context ('info','primary','warning','danger','success' defaults to 'danger')

Methods

initDefaultButtons()

initDefaultButtons()

### .initDefaultButtons()

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

renderButton()

renderButton(string $id, array $button, integer $row, mixed $data)

### .renderButton()

Renders a link button.

Parameters

string $id

the ID of the button

array $button

the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements.

integer $row

the row number (zero-based)

mixed $data

the data object associated with the row

renderDataCellContent()

renderDataCellContent(integer $row, mixed $data)

### .renderDataCellContent()

Renders the data cell content. This method renders the view, update and delete buttons in the data cell.

Parameters

integer $row

the row number (zero-based)

mixed $data

the data associated with the row