\TbColorPicker

## A Base class of all Input Widgets

Summary

Methods
Properties
Constants
init()
run()
registerClientScript()
$form
$format
$events
No constants found
setDefaultPlaceholder()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$form

$form : \TbActiveForm

Type

\TbActiveForm — when created via TbActiveForm. this attribute is set to the form that renders the widget

$format

$format : string

Type

string — the color format - hex | rgb | rgba. Defaults to 'hex'

Methods

init()

init()

run()

run()

### .run()

Widget's run function

registerClientScript()

registerClientScript(string $id)

### .registerClientScript()

Registers required

Parameters

string $id

setDefaultPlaceholder()

setDefaultPlaceholder()