Skip to content

crossxcell99/dtsel

Repository files navigation

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
DTSState : Object

The local state

BodyType : Object

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

About

Simple datetime selector using pure javascript

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors