xhluca / dash-draggable

react-draggable in Python
Other
19 stars 5 forks source link

add bounds? #10

Open Lkruitwagen opened 3 years ago

Lkruitwagen commented 3 years ago

Hi @xhlulu @SterlingButters, awesome dash component!

I was wondering if it would be easy to add the bounds property per https://www.npmjs.com/package/react-draggable? Would be great to be able to limit the area within which a user can rearrange components. Or could you point me to where I might be able to submit a pull request with the addition? I don't know js very well but could try it out?

Thanks!

SterlingButters commented 3 years ago

@Lkruitwagen It probably would not be too difficult but I am not sure when I will be able to set aside this time. You are welcome to submit a pull request if you figure it out.

Lkruitwagen commented 3 years ago

Hi @SterlingButters okay no worries! Is there a place where I should get started? Even if you can take 5 minutes to point me in the right direction that would be super helpful! As I mentioned, I'm not profficient with JS. Thanks!

SterlingButters commented 3 years ago

I would start here