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

Draggable and resizeable options for Modal #4422

Open
beard7 opened this issue Nov 15, 2024 · 2 comments
Open

Draggable and resizeable options for Modal #4422

beard7 opened this issue Nov 15, 2024 · 2 comments
Labels
good first issue Right issue if you're new to vuestic

Comments

@beard7
Copy link

beard7 commented Nov 15, 2024

Is your feature request related to a problem? Please describe.

I have a data grid where each row may open related data in a Modal window. It may be necessary to open multiple Modals at the same time, but only one will be visible.

Describe the solution you'd like

Allow dragging of Modals (and resizing, though that's not as essential).

Describe alternatives you've considered

Using an alternative to Modal, maybe using useDraggable from the VueUse library.

@m0ksem
Copy link
Collaborator

m0ksem commented Nov 15, 2024

VueUse actually has a great solution. Ideally, we want to move to VueUse internally.

We have DraggableWindow here: https://github.com/epicmaxco/vuestic-ui/blob/develop/packages/compiler/devtools/client/ui/components/base/DraggableWindow.vue
But it is missing docs, storybook examples. It also needs more position prop variants, Teleport and integration with Vuestic Global Config.

@m0ksem m0ksem added the good first issue Right issue if you're new to vuestic label Nov 15, 2024
@beard7
Copy link
Author

beard7 commented Nov 18, 2024

I've tried combining useDraggable with Vue Final Modal (https://v4.vue-final-modal.org/) and the modal results are great. Very flexible and provides a useModal() that can be passed a component and props (like Ionic's modalController). Something along these lines built into Vuestic would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Right issue if you're new to vuestic
Projects
None yet
Development

No branches or pull requests

2 participants