Skip to content
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

Merged

Conversation

MaximKudriavtsev
Copy link
Contributor

No description provided.

{payload && params.data.id === payload.id ? (
<SourceAppointment {...params} />
) : (
<TemplatePlaceholder params={{ ...params, style: { ...params.style, cursor: 'pointer' } }} />
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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'))

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

@MaximKudriavtsev MaximKudriavtsev merged commit 238f696 into DevExpress:master Mar 13, 2019
@MaximKudriavtsev MaximKudriavtsev deleted the scheduler-drag-drop-new branch March 13, 2019 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants