PHP Class dosamigos\datepicker\DateRangePicker

Author: Antonio Ramirez ([email protected])
Inheritance: extends yii\widgets\InputWidget, use trait DatePickerTrait
Mostrar archivo 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_oe property

the template to render. Used internally.
protected $_template

$attributeTo public_oe property

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

$form public_oe property

useful for client validation of attributeTo
public $form

$labelTo public_oe property

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

$nameTo public_oe property

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

$optionsTo public_oe property

HTML attributes for the date to input
public $optionsTo

$valueTo public_oe property

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