0.0.25 • Published 5 years ago

gd-date-time-selector v0.0.25

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

gd-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

Getting Started

Install

npm

npm add gd-date-time-selector

yarn

yarn add gd-date-time-selector

Usage

Import

import { DateTimeSelector } from 'gd-date-time-selector'

JSX

<DateTimeSelector>

<DateTimeSelector onChange={this.handleChange} placeholder="Date" value={'25/04/2018 15:49:06'} timeFormat={'DD/MM/YYYY HH:mm:ss'}></DateTimeSelector>

Props

PropTypeRequiredDescriptionDefault
onChangeFunctionWill be called when a date time is selected. Arguments: {value: /formated date/ '25/04/2018 15:49:06', moment: /moment/ mo. Can be null.null
placeholderStringPlaceholder string.''
valueStringTime formated string.''
timeFormatStringMoment supported time formatnull
0.0.25

5 years ago

0.0.24

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5-bis

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago