PHP Class TbPickerColumn

Inheritance: extends TbDataColumn
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 ) 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 )
$row integer
$data mixed

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