scheduler-lib
v1.1.1
Published
UI Component for booking appointments
Downloads
4
Readme
scheduler-lib
Made with create-react-library
Install
npm install --save scheduler-lib
yarn add scheduler-lib
Props
baseUrl: string
logger: object
raygunCallback: Function
authTok: string
slotGroups: SlotGroupRegistryType[]
startDate: string //YYYY-mm-dd
endDate: string //YYYY-mm-dd
context: no_agent | user_scheduled;
referenceId: string
statusCallback: string
isMocked?: optional
Usage
import React, { Component } from 'react'
import { BookAppointment } from 'scheduler-lib';
import 'scheduler-lib/dist/index.css'
class Example extends Component {
render() {
return <BookAppointment
baseUrl='https://xyz.com'
logger={{}}
raygunCallback = {this.raygunCallback}
authTok='abcd'
slotGroups={[]}
context={'no_agent' || 'user_scheduled'}
startDate='2020-04-30'
endDate='2020-05-4'
referenceId='xyzd'
statusCallback={schedulerStatusCallback}
isMocked={false}
/>
}
}