PHP Класс 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.
Автор: : antonio ramirez ([email protected])
Наследование: extends TbJsonDataColumn
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$class string the class name to use to display picker
$pickerOptions 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.

Открытые методы

Метод Описание
init ( ) Initialization function
registerClientScript ( ) Registers client script data
renderDataCellContent ( integer $row, mixed $data ) : string | void Renders a data cell content, wrapping the value with the link that will activate the picker

Описание методов

init() публичный Метод

Initialization function
public init ( )

registerClientScript() публичный Метод

Registers client script data

renderDataCellContent() публичный Метод

Renders a data cell content, wrapping the value with the link that will activate the picker
public renderDataCellContent ( integer $row, mixed $data ) : string | void
$row integer
$data mixed
Результат string | void

Описание свойств

$class публичное свойство

the class name to use to display picker
public string $class
Результат string

$pickerOptions публичное свойство

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.
См. также: http://twitter.github.com/bootstrap/javascript.html#tooltips
public array $pickerOptions
Результат array