You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
I can select an event, and move it perfectly, but i can't drop it.
Dragging work perfectly, but drop doesn't work.
importReact,{Component}from"react";importlogofrom'./logo.svg';importCalendarfrom'@toast-ui/react-calendar';// If you use the default popups, use this.import'tui-date-picker/dist/tui-date-picker.css';import'tui-date-picker/dist/tui-date-picker.css';import'tui-time-picker/dist/tui-time-picker.css';import'./App.css';import'tui-calendar/dist/tui-calendar.css';letDateGenerator=require('random-date-generator')classAppextendsComponent{constructor(props,context){super(props,context);this.state={events:[]};}generateEvents(nbEvents){letstartDate=newDate(2019,9,6)letendDate=newDate(2019,9,12)letevents=[];for(leti=0;i<nbEvents;i++){letstart=DateGenerator.getRandomDateInRange(startDate,endDate)letend=start.setHours(start.getHours()+2)letevent={id: i,title: "event "+i,calendarId: '0',category: 'time',start: start,end: newDate(end)}events.push(event)}this.setState({events:events})}componentWillMount(){this.generateEvents(2000);}render(){return(<div><Calendarheight="900px"setDate={newDate(2019,0,5)}calendars={[{id: '1',name: 'Company',bgColor: '#00a9ff',borderColor: '#00a9ff'}]}disableDblClick={true}disableClick={true}view="week"isReadOnly={false}month={{startDayOfWeek: 0}}schedules={this.state.events}scheduleView="time"taskView={false}useDetailPopup={true}useCreationPopup={true}week={{showTimezoneCollapseButton: true,timezonesCollapsed: true}}/></div>);}}exportdefaultApp;
Expected Behavior
Drag an event, and drop it where desired
I have another question, is it possible to set a default start date for the calendar ?
Thx
The text was updated successfully, but these errors were encountered:
Version
"@toast-ui/react-calendar": "^1.0.4",
Test Environment
Chrome 77 , Win10
Current Behavior
I can select an event, and move it perfectly, but i can't drop it.
Dragging work perfectly, but drop doesn't work.
Expected Behavior
Drag an event, and drop it where desired
I have another question, is it possible to set a default start date for the calendar ?
Thx
The text was updated successfully, but these errors were encountered: