4.2.2 • Published 3 years ago

@pageboard/datetime-entry v4.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

DateTimeEntry

Enter formatted date and time without pickers.

This is the datetime-entry plugin from datetime without jquery.

Options

const defaults = {
 datetime: NaN,
 locale:   navigator.language,
 format:   {
  hour12:  false,
  hour:    '2-digit',
  minute:  '2-digit',
  second:  '2-digit',
  weekday: 'long',
  year:    'numeric',
  month:   'long',
  day:     'numeric',
  timeZone: 'Europe/Paris'
 },
 useUTC:   true,
 minDate:  NaN,
 maxDate:  NaN,
 minTime:  NaN,
 maxTime:  NaN,
 step: NaN, // in seconds
 onChange: t => {}
};

If this browser does not support this, is falls back to UTC (if useUTC is true) or none, which is the system timezone.

Usage

let inst = new window.DateTimeEntry(domElement, options);

What is inside

Instead of create huge data file with day names, month names, etc. I use Intl inside. So all languages supported by Intl, should be ready to use without any twitches.

What's next

  • Add ERA support
  • Increase test coverage
  • Optimize code
4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago

3.3.2-1

3 years ago

3.3.2

3 years ago

3.3.1

5 years ago

3.3.0

5 years ago

3.2.3

5 years ago

3.2.2

5 years ago

3.2.1

5 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago