material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Dynamically add/remove tabs

Open yhware opened this issue 10 years ago • 2 comments

I'm currently porting my SPA written in jQuery and Materialize css framework to react + material-ui and noticed that the ability to dynamically add/remove tabs is not supported.

Although it's not officially supported in Materialize, it can be done by destroying the tab object and reinitializing it every time we add/remove a tab.

I have attached an example of this idea below. (jQuery UI Tabs widget)

What do you guys think?

image

yhware avatar Oct 28 '16 05:10 yhware

This seems more appropriate for a stackoverflow question with a codepen, I don't see any reason why this woudln't be possible

narvoxx avatar Nov 03 '16 13:11 narvoxx

I don't see any reason why this wouldn't be possible

Right, as far as I know, nothing is preventing us from doing so. I'm closing this issue as it's more like a question. If you find any issue, you can use this playground to provide a reproduction test case: http://www.webpackbin.com/Vy6jAlXbG.

oliviertassinari avatar Nov 20 '16 11:11 oliviertassinari