Свойство | Type | Description | |
---|---|---|---|
$callback | JS Callback for Daterange picker | ||
$pluginOptions | pluginOptions to be passed to daterange picker plugin | ||
$selector | string | if provided, then no input field will be rendered. It will write the JS code for the specified selector. |
Méthode | Description | |
---|---|---|
init ( ) | Initializes the widget. | |
registerClientScript ( ) | Registers required css js files | |
renderField ( ) | Renders the field if no selector has been provided | |
run ( ) | Runs the widget. |
Méthode | Description | |
---|---|---|
setDaysOfWeekNames ( ) | Sets days of week names if no locale settings were made to the plugin options. | |
setLocaleSettings ( ) | If user did not provided the names of weekdays and months in $this->pluginOptions['locale'] (which he should not care about anyway) then we populate this names from Yii's locales database. | |
setMonthNames ( ) | Sets month names if no locale settings were made to the plugin options. |
public registerClientScript ( ) |
public renderField ( ) |
public $pluginOptions |
public string $selector | ||
Résultat | string |