\TbJsonButtonColumn

## JsonButtomColumn widget

Works in conjunction with TbJsonGridView. Renders HTML or returns JSON according to the request to the Grid.

Summary

Methods
Properties
Constants
renderHeaderCell()
renderDataCell()
$viewButtonIcon
$updateButtonIcon
$deleteButtonIcon
$grid
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').

$grid

$grid : \TbJsonGridView

Type

\TbJsonGridView

Methods

renderHeaderCell()

renderHeaderCell()

Renders|returns the header cell.

renderDataCell()

renderDataCell(int $row) : array|void

Renders|returns the data cell

Parameters

int $row

Returns

array|void

initDefaultButtons()

initDefaultButtons()

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

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( $row,  $data)

Parameters

$row
$data