0.0.25 • Published 6 years ago

gd-date-time-selector v0.0.25

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.24

6 years ago

0.0.23

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.20

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5-bis

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