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

Add draggable and resizable features to Dialog #1616

Closed
GeorgeCodeHub opened this issue Oct 8, 2020 · 1 comment
Closed

Add draggable and resizable features to Dialog #1616

GeorgeCodeHub opened this issue Oct 8, 2020 · 1 comment
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@GeorgeCodeHub
Copy link

GeorgeCodeHub commented Oct 8, 2020

**I'm submitting a

[ ] bug report
[x] feature request
[ ] support request

I want to be able to have the dialog be draggable from the header and resizable from the edges. I noticed that such a feature is available in PrimeNG. Is it possible that something similar can be implemented in primeReact?

  • React version:
    16.13

  • PrimeReact version:
    5.0

  • Browser:
    all

  • Language:
    ES6/7 | ES5
@mertsincan mertsincan added this to the 6.1.0 milestone Feb 10, 2021
@mertsincan mertsincan added Status: In Progress Core Team is working on the issue or pull request Type: New Feature Issue contains a new feature or new component request labels Feb 10, 2021
@mertsincan mertsincan removed the Status: In Progress Core Team is working on the issue or pull request label Feb 17, 2021
@mertsincan mertsincan self-assigned this Feb 17, 2021
@mertsincan mertsincan changed the title Dialog Draggable and Resizable Add draggable and resizable features to Dialog Feb 17, 2021
@mertsincan
Copy link
Member

New Properties

Name Type Default Description
resizable boolean true Enables resizing of the content.
draggable boolean true Enables dragging to change the position using header.
minX number 0 Minimum value for the left coordinate of dialog in dragging.
minY number 0 Minimum value for the top coordinate of dialog in dragging.
keepInViewport boolean true Keeps dialog in the viewport.

New Events

Name Parameters Description
onDragStart event: Browser event Callback to invoke when dialog dragging is initiated.
onDrag event: Browser event Callback to invoke when dragging dialog.
onDragEnd event: Browser event Callback to invoke when dialog dragging is completed.
onResizeStart event: Browser event Callback to invoke when dialog resizing is initiated.
onResize event: Browser event Callback to invoke while resizing dialog.
onResizeEnd event: Browser event Callback to invoke when dialog resizing is completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants