You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be amazing if this library would also support dynamically adding/removing sliders.
Context
In my use-case it would be a great addition, my current workaround would be to destroy the slider instance and create a new one in its place, with the added/removed slider included in the config. However, that feels like a workaround that has a bigger (although not huge) impact on performace compared to a native API to achieve the same thing
How it would work
The exposed API would have a method addHandle(connectionOption? = false) that allows you to add a handle to the end of the slider and set the connect option for the section between this new handle and the previous last handle.
The exposed API would have a method removeHandle(handleNumber?: number, connectionOption?: boolean) that allows you to remove a handle (or the last one if no handle number is provided) and which sets the connectionOption for the 2 sections that were merged into 1
The text was updated successfully, but these errors were encountered:
Summary
It would be amazing if this library would also support dynamically adding/removing sliders.
Context
In my use-case it would be a great addition, my current workaround would be to destroy the slider instance and create a new one in its place, with the added/removed slider included in the config. However, that feels like a workaround that has a bigger (although not huge) impact on performace compared to a native API to achieve the same thing
How it would work
addHandle(connectionOption? = false)
that allows you to add a handle to the end of the slider and set theconnect
option for the section between this new handle and the previous last handle.removeHandle(handleNumber?: number, connectionOption?: boolean)
that allows you to remove a handle (or the last one if no handle number is provided) and which sets the connectionOption for the 2 sections that were merged into 1The text was updated successfully, but these errors were encountered: