PHP Class dosamigos\datepicker\DateRangePicker

Author: Antonio Ramirez ([email protected])
Inheritance: extends yii\widgets\InputWidget, use trait DatePickerTrait
Show file Open project: 2amigos/yii2-date-picker-widget Class Usage Examples

Public Properties

Property Type Description
$attributeTo the attribute name for date range (to Date)
$form useful for client validation of attributeTo
$labelTo the label to. Defaults to 'to'.
$nameTo the name for date range (to Date)
$optionsTo HTML attributes for the date to input
$valueTo the value for date range (to Date value)

Protected Properties

Property Type Description
$_template the template to render. Used internally.

Public Methods

Method Description
init ( )
registerClientScript ( ) Registers required script for the plugin to work as DateRangePicker
run ( )

Method Details

init() public method

public init ( )

registerClientScript() public method

Registers required script for the plugin to work as DateRangePicker

run() public method

public run ( )

Property Details

$_template protected property

the template to render. Used internally.
protected $_template

$attributeTo public property

the attribute name for date range (to Date)
public $attributeTo

$form public property

useful for client validation of attributeTo
public $form

$labelTo public property

the label to. Defaults to 'to'.
public $labelTo

$nameTo public property

the name for date range (to Date)
public $nameTo

$optionsTo public property

HTML attributes for the date to input
public $optionsTo

$valueTo public property

the value for date range (to Date value)
public $valueTo