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

[Feature Request] able to add custom transform to helper element #160

Open
DanSnow opened this issue Mar 7, 2022 · 0 comments
Open

[Feature Request] able to add custom transform to helper element #160

DanSnow opened this issue Mar 7, 2022 · 0 comments

Comments

@DanSnow
Copy link

DanSnow commented Mar 7, 2022

Description

Thanks for the awesome package. We are using this package in our application and we want to add a rotate effect when dragging. We use helperClass to add a custom class for this. But when I started to move my cursor, the effect is immediately gone. I found that it's because here use translate to move the ghost element and override our transform effect.
https://github.com/Jexordexan/vue-slicksort/blob/main/src/ContainerMixin.js#L564-L566

Is it possible to add a prop to let us append some custom styles?

Expected result

can add custom transform

Actually result

transform overrides by the package

Proposal solution

  1. add a prop like set-helper-style and accept a function to allow overriding the part of updating styles
  2. add a prop like helper-custom-transform and append to the transform style
DanSnow added a commit to storipress/vue-slicksort that referenced this issue Mar 7, 2022
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

No branches or pull requests

1 participant