\TbDateTimePicker

Bootstrap DateTimePicker widget

Summary

Methods
Properties
Constants
init()
run()
registerClientScript()
registerLanguageScript()
$form
$options
$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

$options

$options : array

Type

array — the options for the Bootstrap JavaScript plugin.

$events

$events : string[]

Type

string[] — the JavaScript event handlers.

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Runs the widget.

registerClientScript()

registerClientScript()

### .registerClientScript()

Registers required client script for bootstrap datepicker. It is not used through bootstrap->registerPlugin in order to attach events if any

registerLanguageScript()

registerLanguageScript()

setDefaultPlaceholder()

setDefaultPlaceholder()