\TbTimePicker

## A Base class of all Input Widgets

Summary

Methods
Properties
Constants
init()
run()
registerClientScript()
$form
$options
$events
$wrapperHtmlOptions
$noAppend
No constants found
setDefaultPlaceholder()
No protected properties found
N/A
injectClass()
echoAppend()
No private properties found
N/A

Properties

$form

$form : \TbActiveForm

Type

\TbActiveForm — If we're called from the form, here lies the reference to it.

$events

$events : string[]

Type

string[] — the JavaScript event handlers.

$wrapperHtmlOptions

$wrapperHtmlOptions : array

Type

array — HTML attributes for the wrapper "div" tag.

$noAppend

$noAppend : boolean

Type

boolean — Whether to not append the time icon at end of input. NOTE that the timepicker is opening after click on this icon if it's present!

Methods

init()

init()

run()

run()

Runs the widget.

registerClientScript()

registerClientScript(string $id)

Registers required javascript files

Parameters

string $id

setDefaultPlaceholder()

setDefaultPlaceholder()

injectClass()

injectClass(array $valueset, string $className) : array

Parameters

array $valueset
string $className

Returns

array

echoAppend()

echoAppend()