feat: Custom Calendar Toolbar
Add Custom Calendar Toolbar
This commit is contained in:
parent
6a2215b9d5
commit
b05d2be1ac
5 changed files with 395 additions and 113 deletions
|
@ -4,6 +4,7 @@ import { Calendar, momentLocalizer } from 'react-big-calendar';
|
|||
import moment from 'moment';
|
||||
import 'react-big-calendar/lib/css/react-big-calendar.css';
|
||||
import 'react-big-calendar/lib/addons/dragAndDrop/styles.css';
|
||||
import CustomToolbar from '@/components/custom-toolbar';
|
||||
|
||||
moment.updateLocale('en', {
|
||||
week: {
|
||||
|
@ -24,6 +25,12 @@ const MyCalendar = (props) => (
|
|||
style={{ height: 500 }}
|
||||
culture="de-DE"
|
||||
defaultView='week'
|
||||
|
||||
/*CustomToolbar*/
|
||||
components={{
|
||||
toolbar: CustomToolbar
|
||||
}}
|
||||
/*CustomToolbar*/
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue