YiiBooster
YiiBooster copied to clipboard
Proposal: TbBaseMenu->renderMenuItem change
While working on mobile version, I got a request to hide text labels from the TbNavbar and keep only the icons.
My solution: wrap the text label of a menu item with a span tag with a specific class attr, this way we can hide it via css & media query. So, some small changes in renderMenuItem() method from TbBaseMenu class would do the trick. e.g.
$item['label'] = ' ';
regards, Sergiu