PHP 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.
Author: : antonio ramirez ([email protected])
Inheritance: extends TbJsonDataColumn
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$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.

Public Methods

Method Description
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

Method Details

init() public method

Initialization function
public init ( )

registerClientScript() public method

Registers client script data

renderDataCellContent() public method

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
return string | void

Property Details

$class public property

the class name to use to display picker
public string $class
return string

$pickerOptions public property

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.
See also: http://twitter.github.com/bootstrap/javascript.html#tooltips
public array $pickerOptions
return array