@dtsel/dtsel
v2.0.1
Published
A simplistic pure javascript datetime selector
Downloads
2
Readme
A simplistic pure javascript datetime selector
Usage Example
instance = new dtsel.DTS({
element: 'input[name="date_field"]',
direction: 'BOTTOM',
dateFormat: "yyyy-mm-dd",
showTime: false,
timeFormat: "HH:MM:SS"
});
Typedefs
Config : Object
Kind: global typedef
Properties
| Name | Type | | --- | --- | | dateFormat | String | | timeFormat | String | | showDate | Boolean | | showTime | Boolean | | paddingX | Number | | paddingY | Number | | defaultView | BodyType | | direction | "TOP" | "BOTTOM" |
DTSState : Object
The local state
Kind: global typedef
Properties
| Name | Type | | --- | --- | | fullYear | Number | | month | Number | | date | Number | | hours | Number | | minutes | Number | | seconds | Number | | bodyType | BodyType |
BodyType : "DAYS" | "MONTHS" | "YEARS"
Kind: global typedef