PHP Class TbDateRangePicker

Inheritance: extends TbBaseInputWidget
Show file Open project: yinhe/yincart

Public Properties

Property Type Description
$callback JS Callback for Daterange picker
$form when created via TbActiveForm. this attribute is set to the form that renders the widget
$htmlOptions the HTML attributes for the widget container.
$options Options to be passed to daterange picker
$selector string

Public Methods

Method Description
init ( ) ### .init()
registerClientScript ( ) ### .registerClientScript()
run ( ) ### .run()

Private Methods

Method Description
setDaysOfWeekNames ( ) ### .setDaysOfWeekNames()
setLocaleSettings ( ) ### .setLocaleSettings()
setMonthNames ( ) ### .setMonthNames()

Method Details

init() public method

Initializes the widget.
public init ( )

registerClientScript() public method

Registers required css js files

run() public method

Runs the widget.
public run ( )

Property Details

$callback public property

JS Callback for Daterange picker
public $callback

$form public property

when created via TbActiveForm. this attribute is set to the form that renders the widget
public $form

$htmlOptions public property

the HTML attributes for the widget container.
public $htmlOptions

$options public property

Options to be passed to daterange picker
public $options

$selector public property

public string $selector
return string