\TbJsonPickerColumn

## Class TbJsonPickerColumn

The TbJsonPickerColumn works with TbJsonGridView and allows you to create a column that will display a picker element The picker is a special plugin that renders a dropdown on click, which contents can be dynamically updated.

Summary

Methods
Properties
Constants
renderDataCell()
renderDataCellContent()
renderHeaderCell()
renderFilterCell()
init()
registerClientScript()
$filterInputOptions
$class
$pickerOptions
$grid
$grid
$grid
No constants found
renderHeaderCellContent()
renderFilterCellContent()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$filterInputOptions

$filterInputOptions : array

Type

array — HTML options for filter input

$class

$class : string

Type

string — the class name to use to display picker

$pickerOptions

$pickerOptions : array

Type

array — the javascript options for the picker bootstrap plugin. The picker bootstrap plugin extends from the tooltip plugin. Note that picker has also a 'width' just in case we display AJAX'ed content.

$grid

$grid : \TbJsonGridView

Type

\TbJsonGridView

$grid

$grid : \TbJsonGridView

Type

\TbJsonGridView

$grid

$grid : \TbGridView|\TbExtendedGridView

the grid view object that owns this column.

Type

\TbGridView|\TbExtendedGridView

Methods

renderDataCell()

renderDataCell(integer $row) : array|void

Renders a data cell.

Parameters

integer $row

the row number (zero-based)

Returns

array|void

renderDataCellContent()

renderDataCellContent(int $row, mixed $data) : string|void

Renders a data cell content, wrapping the value with the link that will activate the picker

This method evaluates {@link value} or {@link name} and renders the result.

Parameters

int $row
mixed $data

Returns

string|void

renderHeaderCell()

renderHeaderCell()

Renders the header cell.

renderFilterCell()

renderFilterCell()

### .renderFilterCell()

Renders the filter cell.

init()

init()

Initialization function

registerClientScript()

registerClientScript()

Registers client script data

renderHeaderCellContent()

renderHeaderCellContent()

### .renderHeaderCellContent()

Renders the header cell content. This method will render a link that can trigger the sorting if the column is sortable.

renderFilterCellContent()

renderFilterCellContent()

### .renderFilterCellContent()

Renders the filter cell content. On top of Yii's default, here we can provide HTML options for actual filter input