PHP 클래스 TbColorPicker

또한 보기: ------------------------------------------------------------------------ - Changelog
부터: 10/27/12 7:28 PM
저자: : yiqing95 ([email protected])
상속: extends CInputWidget
파일 보기 프로젝트 열기: yinhe/yincart

공개 프로퍼티들

프로퍼티 타입 설명
$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'

공개 메소드들

메소드 설명
registerClientScript ( string $id ) ### .registerClientScript()
run ( ) ### .run()

메소드 상세

registerClientScript() 공개 메소드

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

run() 공개 메소드

Widget's run function
public run ( )

프로퍼티 상세

$events 공개적으로 프로퍼티

the JavaScript event handlers.
또한 보기: 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 공개적으로 프로퍼티

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

$format 공개적으로 프로퍼티

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