New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(react-scheduler): add editing by dragging #1870
feat(react-scheduler): add editing by dragging #1870
Conversation
packages/dx-react-scheduler-demos/src/demo-sources/scheduler-editing/material-ui/drag-drop.jsx
Outdated
Show resolved
Hide resolved
packages/dx-react-scheduler-material-ui/src/templates/all-day-panel/container.jsx
Outdated
Show resolved
Hide resolved
packages/dx-react-scheduler-material-ui/src/templates/drag-drop/appointments.jsx
Outdated
Show resolved
Hide resolved
packages/dx-react-scheduler-material-ui/src/templates/drag-drop/container.jsx
Outdated
Show resolved
Hide resolved
{payload && params.data.id === payload.id ? ( | ||
<SourceAppointment {...params} /> | ||
) : ( | ||
<TemplatePlaceholder params={{ ...params, style: { ...params.style, cursor: 'pointer' } }} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get rid of cursor: 'pointer'
in core plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can pass a draggingEnabled
property to Appointment Component and use it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's the closest way to 'ideology'))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have passed a clickable
property into an appointment component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The component doesn't know about dragging, it know only about itself is clickable.
No description provided.