1

There are some solutions on SO already about adding / removing tabs but I felt that with insertUI and removeUI, this should be hassle free. When I tried I found myself unable to figure out the id to specify in the command to even begin with. Help please?

In a nutshell, is it possible to add a new tab with insertUI/removeUI?

Community
  • 1
  • 1
TheComeOnMan
  • 12,535
  • 8
  • 39
  • 54
  • Can you show what you tried? Otherwise it is quite hard to answer the question. "hassle free" is really a matter of opinion. – Mike Wise Oct 29 '16 at 11:14
  • In a nutshell, is it possible to add a new tab with insertUI/removeUI? – TheComeOnMan Oct 29 '16 at 14:40
  • 1
    It's more difficult than it looks. When you call `tabsetPanel(tabPanel(...`, Shiny generates two HTML elements separately (the tab title inside `ul>li`, and the tab content inside a `div`). When you use `insertUI(tabPanel)`, it only generates the `div` elements, thus you'll need to figure out a way to insert the necessary title as well in a different HTML node. – Xiongbing Jin Oct 29 '16 at 16:15
  • @TheComeOnMan, Did you get an answer to above? I have a similar problem to solve. :D – Mritunjay Jul 19 '17 at 10:11

0 Answers0