/dtsel

Simple datetime selector using pure javascript

Primary LanguageJavaScriptMIT LicenseMIT

A simplistic pure javascript datetime selector

Usage Example

instance = new dtsel.DTS('input[name="date_field"]',  {
    direction: 'BOTTOM',
    dateFormat: "yyyy-mm-dd",
    showTime: false,
    timeFormat: "HH:MM:SS"
});

Typedefs

Config : Object
InstanceState : Object

The local state

BodyType : "DAYS" | "MONTHS" | "YEARS"

InstanceState : Object

The local state

Kind: global typedef
Properties

Name Type
value Date
year Number
month Number
day Number
time Number
hours Number
minutes Number
seconds Number
bodyType BodyType
visible Boolean
cancelBlur Number

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"

BodyType : "DAYS" | "MONTHS" | "YEARS"

Kind: global typedef