1.0.33 • Published 6 years ago

date-time-selector v1.0.33

Weekly downloads
41
License
MIT
Repository
github
Last release
6 years ago

date-time-selector

A(nother) date time selector.

This one...

  • Is a React Component.
  • Makes use of out-of-the-box Bootstrap 4 css classes for styling.
  • Uses icons from fontawesome

All internal date manipulation is achieved using Moment.js

The component renders an input-group

Demo

https://codesandbox.io/s/881mmkvlwl

Getting Started

Install

npm

npm add date-time-selector

yarn

yarn add date-time-selector

Usage

Import

import DateTimeSelector from 'date-time-selector'

JSX

<DateTimeSelector>

<DateTimeSelector onSelected={this.handleSelected} disableTime={true} format='L' default={moment()} />

Props

PropTypeRequiredDescriptionDefault
defaultObjectA moment.js object. This will be the default value selected in the selector
onSelectedFunctionWill be called when a date is submitted. The selected moment is the only argument. Can be null.
formatStringmoment.js format string.'L LTS'
disableTimeBooleanSet it to true if you'd like to hide the time inputs.false
1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago