ChrisTERiS Posted January 11, 2021 Share Posted January 11, 2021 Getting as example this article, I tried to do the same in a sidebar widget but it does not works: $secondarySidebar->addChild('mywidget', array( 'label' => 'Header Text', 'icon' => 'fas fa-user', 'bodyHtml' => 'Here is the main text', 'footerHtml' => 'Footer Text', 'extras' => array( 'color' => 'blue', ), )); Any idea on how to add the blue top border in the widger? Thank you Chris 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 12, 2021 Share Posted January 12, 2021 22 hours ago, WHMUp said: Any idea on how to add the blue top border in the widget? I suspect you could do it your way if you modified sidebar.tpl to expect a color to be passed to it as an extra (and assuming the CSS was defined for it as per the panels). the way I would do it would be to use setClass... it would still work on v8.1 and Six... 1 Quote Link to comment Share on other sites More sharing options...
ChrisTERiS Posted January 12, 2021 Author Share Posted January 12, 2021 @brian! Once again you rock my world !! 🤩 https://www.whmup.com/ 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.