\TbDateRangePicker

## A Base class of all Input Widgets

Summary

Methods
Properties
Constants
init()
run()
registerScript()
registerClientScript()
$form
$selector
$callback
$options
$htmlOptions
No constants found
setDefaultPlaceholder()
No protected properties found
N/A
setLocaleSettings()
setDaysOfWeekNames()
setMonthNames()
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

$selector

$selector : string

Type

string

$callback

$callback : string

Type

string — JS Callback for Daterange picker

$options

$options : array

Type

array — Options to be passed to daterange picker

$htmlOptions

$htmlOptions : array

Type

array — the HTML attributes for the widget container.

Methods

init()

init()

### .init()

Initializes the widget.

run()

run()

### .run()

Runs the widget.

registerScript()

registerScript( $selector,  $options,  $callback)

Parameters

$selector
$options
$callback

registerClientScript()

registerClientScript()

### .registerClientScript()

Registers required css js files

setDefaultPlaceholder()

setDefaultPlaceholder()

setLocaleSettings()

setLocaleSettings()

### .setLocaleSettings()

If user did not provided the names of weekdays and months in $this->options['locale'] (which he should not care about anyway) then we populate this names from Yii's locales database.

This method works with the local properties directly, beware.

setDaysOfWeekNames()

setDaysOfWeekNames()

### .setDaysOfWeekNames()

setMonthNames()

setMonthNames()

### .setMonthNames()