radio button tab set with only one tab rendered should not show button

  • 2
  • Problem
  • Updated 2 years ago
  • Solved
This looks pretty silly, if you ask me:



If due to conditional rendering only one tab exists, the radio buttons for the tabset shouldn't be rendered at all.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 2 years ago

  • 2
Photo of Chandra V

Chandra V, Champion

  • 6,966 Points 5k badge 2x thumb
Or we should be able to say whether it shows or not.  Kind of like a section header.  I use single tabs sometimes (mainly to use the tab shown action framework) and don't always want the tab header to show either, but I can't get rid of it.  But sometimes I might want to see it....
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Perfect solution, Chandra.