PHP Class TbColorPicker

See also: ------------------------------------------------------------------------ - Changelog
Since: 10/27/12 7:28 PM
Author: : yiqing95 ([email protected])
Inheritance: extends CInputWidget
Exibir arquivo Open project: yinhe/yincart

Public Properties

Property Type Description
$events the JavaScript event handlers.
$form when created via TbActiveForm. this attribute is set to the form that renders the widget
$format the color format - hex | rgb | rgba. Defaults to 'hex'

Public Methods

Method Description
registerClientScript ( string $id ) ### .registerClientScript()
run ( ) ### .run()

Method Details

registerClientScript() public method

Registers required
public registerClientScript ( string $id )
$id string

run() public method

Widget's run function
public run ( )

Property Details

$events public_oe property

the JavaScript event handlers.
See also: events section show This event fires immediately when the color picker is displayed. hide This event is fired immediately when the color picker is hidden. changeColor This event is fired when the color is changed.
 'events'=>array(
     'changeColor'=>'js:function(ev){
         console.log(ev.color.toHex());
     }',
     'hide'=>'js:function(ev){
       console.log("I am hidden!");
  }')
public $events

$form public_oe property

when created via TbActiveForm. this attribute is set to the form that renders the widget
public $form

$format public_oe property

the color format - hex | rgb | rgba. Defaults to 'hex'
public $format