Datetimepicker
Default
Copy Pug Copy HTML Show code Hide code
<e-datetimepicker></e-datetimepicker>
<e-datetimepicker></e-datetimepicker>Variations
Initial value Copy Pug Copy HTML Show code Hide codevalue="2017-02-01 13:37"
<e-datetimepicker value="2017-02-01 13:37"></e-datetimepicker>
<e-datetimepicker value="2017-02-01 13:37"></e-datetimepicker>API Reference
Properties
| Name | Description | Type | Required | Default value |
|---|---|---|---|---|
| value | Datetime value as string, eg: 2017-02-01 23:00 | string | ||
| locale | Sets the language of the component | string | en | |
| startdate | The earliest date a user may select | string | ||
| enddate | The latest date a user can select | string |
Events
| Event | Description | Returns |
|---|---|---|
update | Fires on every update | {
detail: {
date: [as string]
}
} |
close | Fires when the component is closed | {
detail: {
date: [as string],
dateObj: [JavaScript date]
}
} |