protected function colorpickerField()
	{
		$format = 'hex';
		if (isset($this->htmlOptions['format'])) {
			$format = $this->htmlOptions['format'];
			unset($this->htmlOptions['format']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbColorPicker',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'format' => $format,
				'events' => isset($events) ? $events : array(),
				'htmlOptions' => $this->htmlOptions,
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}
protected function colorpickerField()
	{
		$format = 'hex';
		if (isset($this->htmlOptions['format'])) {
			$format = $this->htmlOptions['format'];
			unset($this->htmlOptions['format']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbColorPicker',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'format' => $format,
				'events' => isset($events) ? $events : array(),
				'htmlOptions' => $this->htmlOptions,
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}
protected function colorpickerField ( ) { $ format = 'hex' ; if ( isset ( $ this -> htmlOptions [ 'format' ] ) ) { $ format = $ this -> htmlOptions [ 'format' ] ; unset ( $ this -> htmlOptions [ 'format' ] ) ; } if ( isset ( $ this -> htmlOptions [ 'events' ] ) ) { $ events = $ this -> htmlOptions [ 'events' ] ; unset ( $ this -> htmlOptions [ 'events' ] ) ; } echo $ this -> getLabel ( ) ; echo $ this -> getPrepend ( ) ; $ this -> widget ( 'booster.widgets.TbColorPicker' , array ( 'model' => $ this -> model , 'attribute' => $ this -> attribute , 'format' => $ format , 'events' => isset ( $ events ) ? $ events : array ( ) , 'htmlOptions' => $ this -> htmlOptions , ) ) ; echo $ this -> getAppend ( ) ; echo $ this -> getError ( ) . $ this -> getHint ( ) ; }
Renders a colorpicker field.
@return string the rendered content
@author antonio ramirez <antonio@clevertech.biz>
Renders a colorpicker field .