@rproenza/appointment-date-picker
v1.2.0
Published
NPM Module to schedule appointments using a complex ReactJS date picker design
Downloads
2
Readme
appointment-date-picker
Description
NPM Module to schedule appointments using a complex ReactJS date picker design.
Module concepts
Concepts
Installation
npm install @rproenza/appointment-date-picker --save
yarn add @rproenza/appointment-date-picker
Usage
Javascript
var AppointmentDatePickerModule = require('@rproenza/appointment-date-picker');
var AppointmentDatePicker = AppointmentDatePickerModule.default;
<AppointmentDatePicker
submitTestDrive={() => {
console.log('date selected ');
}}
onDayChanged={date => {
console.log('onDayChanged ', date);
}}
onTimeChanged={date => {
console.log('onTimeChanged ', date);
}}
/>
TypeScript
import AppointmentDatePicker from '@rproenza/appointment-date-picker';
<AppointmentDatePicker
submitTestDrive={() => {
console.log('date selected ');
}}
onDayChanged={date => {
console.log('onDayChanged ', date);
}}
onTimeChanged={date => {
console.log('onTimeChanged ', date);
}}
/>
Test
npm run test