tag:blogger.com,1999:blog-8449039.post8774735088783367342..comments2024-03-28T05:59:36.577-04:00Comments on Scott Spendolini's Blog: Stinkin' BadgesScotthttp://www.blogger.com/profile/01187435106015051061noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8449039.post-5133708875805268572016-02-10T04:19:51.977-05:002016-02-10T04:19:51.977-05:00Thanks for that appreciate it.Thanks for that appreciate it.Anonymoushttps://www.blogger.com/profile/05187772143098752498noreply@blogger.comtag:blogger.com,1999:blog-8449039.post-90968605361114132962016-02-09T10:21:12.588-05:002016-02-09T10:21:12.588-05:00Hi Leigh. See my comment below on how to apply a c...Hi Leigh. See my comment below on how to apply a class to a specific item and thus, style the badge differently.Chimpanzeehttps://www.blogger.com/profile/09260153463389005262noreply@blogger.comtag:blogger.com,1999:blog-8449039.post-56528236215145558602016-02-09T10:20:13.986-05:002016-02-09T10:20:13.986-05:00Great little tip - thanks. I don't think this ...Great little tip - thanks. I don't think this is documented anywhere but will come in very handy. I've also noticed that you can use the 2nd User Defined Attrubute to add an additional class to the <li> element. You could also enter a Page or Application Item in here that's procedurally set depending on the value, eg:<br /><br />if :BADGE_VALUE > 0 then<br /> :BADGE_CLASS := 'hot';<br />else<br /> :BADGE_CLASS := 'neutral';<br />end if;<br /><br />This allows you to style the badge differently if action is required using some CSS like<br /><br />li.hot .t-Button-badge {background-color:red}<br />li.neutral .t-Button-badge {background-color:gray}<br /><br />Or you can just declare a static class directly in the 2nd attribute if, like Leigh above, that's all you need.<br /><br />Thanks again.Chimpanzeehttps://www.blogger.com/profile/09260153463389005262noreply@blogger.comtag:blogger.com,1999:blog-8449039.post-35633290197757660622016-01-29T06:52:08.187-05:002016-01-29T06:52:08.187-05:00Great little tutorial.
Is there away to have the ...Great little tutorial.<br /><br />Is there away to have the background color different for two separate badges? I.e. Red for system alerts and another color for simple notifications?<br />Anonymoushttps://www.blogger.com/profile/05187772143098752498noreply@blogger.com