Skip to content

Simple datetime selector using pure javascript

License

Notifications You must be signed in to change notification settings

Gibbonator/dtsel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
dateTimeSeparator String
showDate Boolean
showTime Boolean
paddingX Number
paddingY Number
defaultView BodyType
direction "TOP" | "BOTTOM"

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

Kind: global typedef

About

Simple datetime selector using pure javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.0%
  • CSS 5.0%