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
Is your feature request related to a problem? Please describe.
No Issue - just looking for some additional optional functionality.
Describe the solution you'd like
I'd like to use the doc control for side bars and bottom bars on my app, to allow users to drag and drop the tabs between these sections.
I have a middle Node that i'm creating that I'd prefer if users couldn't drag it or drop other tabs from other nodes into this tab.
I've made a couple of changes to enable this functionality,
i've added a prop on Node::Leaf hide_label that allow one to set if they what that node to hide the labels - if there are no labels showing it prevents the ability to drag the tab in the node, and i've also used the same setting to prevent dropping other tabs into the node.
to enble this on a node, i've create the additional functions split_left_single... which only accepts a single tab and creates the Node:Leaf with hide_label set to true.
Describe alternatives you've considered
i've added a function to DockArea that allow me to set that no tab labels should be shown - this isn't particularly useful in my use case, as it really prevents the ability to see more than one tab in any node - or drag any of them anywhere.
Additional context
i've created a draft pr into the release-v7 branch because that's the branch that i've been using locally.
just wanted to put it up to see if this is functionality you're interested in.
if you'd like it, I can neaten it up to make a suitable PR into main.
The text was updated successfully, but these errors were encountered:
Hey thanks for submitting this issue. As for the last paragraph: we now only merge bugfixes to main, all new features and breaking changes should go to the release-0.x branches.
Is your feature request related to a problem? Please describe.
No Issue - just looking for some additional optional functionality.
Describe the solution you'd like
I'd like to use the doc control for side bars and bottom bars on my app, to allow users to drag and drop the tabs between these sections.
I have a middle Node that i'm creating that I'd prefer if users couldn't drag it or drop other tabs from other nodes into this tab.
I've made a couple of changes to enable this functionality,
i've added a prop on Node::Leaf hide_label that allow one to set if they what that node to hide the labels - if there are no labels showing it prevents the ability to drag the tab in the node, and i've also used the same setting to prevent dropping other tabs into the node.
to enble this on a node, i've create the additional functions split_left_single... which only accepts a single tab and creates the Node:Leaf with hide_label set to true.
Describe alternatives you've considered
i've added a function to DockArea that allow me to set that no tab labels should be shown - this isn't particularly useful in my use case, as it really prevents the ability to see more than one tab in any node - or drag any of them anywhere.
Additional context
i've created a draft pr into the release-v7 branch because that's the branch that i've been using locally.
just wanted to put it up to see if this is functionality you're interested in.
if you'd like it, I can neaten it up to make a suitable PR into main.
The text was updated successfully, but these errors were encountered: