Javascript/jQuery legend widget -
Is a JS / jQuery widget that allows me to display a simple legend, in which a small color for example Rectens and one of the next text labels?
Legend in this specific case will show the meaning behind the different color codes in an inline jQuery UI Tracker widget, which the user customized to enable multiple selections and show different colors. For specific days
In fact, what I want to do is look like a list of SO sites on the footer of this page (but ideally is listed next to the picker). So if there is no solution, then I think I will try the source of this page.
You have to hand it over to the stack overflow crew, their method is very clever to build legends. Basically, they use character ■ (ASCII 254) in place of any image or div, they include it in a period, which is styled with font size and color property, there is a style anchor tag in front of it. rinse and repeat.
It's particularly cunning about this that it fits in all an inline in the and lines on the baseline in the devils! Tell me again: These lines on the baseline ! Therefore there is no inequality in image offsets etc. A tip of the cap to the UI engineer that makes it simple. Thanks for calling me attention, or maybe I never saw and learned.
EDIT: ASCI 254 is wrong. The value of the actual code is "■" .charCodeAt (0)
9632 and possibly some flavor of Unicode is the same look and size, but different values.
Comments
Post a Comment