Support re-ordering tabs via cdk drag-drop
See original GitHub issueNot sure if this would be doing some work in cdk/drag-drop that will make it automatically work on the tabs, or if a supplemental directive would be necessary.
Some of my thoughts:
- Tabs on its own can’t have a dependency on
cdk/drag-drop - Will have to take tab pagination into account, probably autoscrolling
- Need to decide whether the tabs move as you drag or if it only shows an indicator for where the tab will drop
Issue Analytics
- State:
- Created 5 years ago
- Reactions:20
- Comments:23 (7 by maintainers)
Top Results From Across the Web
Drag and Drop
Adding cdkDropList around a set of cdkDrag elements groups the draggables into a reorderable collection. Items will automatically rearrange as an element moves....
Read more >Make Angular Material tabs drag/drop re-order tab index
Is there any way to make Angular Material tabs drag/drop, re-order the tab index using: CDK drag-drop service. CDK Drag-Drop - Service.
Read more >Reordering tabs with drag and drop
I was wondering if anyone has had success using either rich:tabpanel or rich:togglepanel which give the end users the ability to reorder the ......
Read more >Getting to Know the Angular CDK Drag and Drop Feature
In this article, we'll learn how to use the drag and drop feature. ... The cdk-drop component supports transferring dragged items between connected...
Read more >Exploring Drag and Drop with the new Angular Material CDK
Now that we know how to create a draggable item and a drop zone, the next step is to drag and re-order items...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are there are updates wrt documentation for this?
I managed it with 7.2 using CDK library:
Then in th event handler you have to manage the order of mat-tabs, like:
Hope it helps