Glyphs
The C1 MVC CSS includes several glyphs defined as pure CSS. The glyphs are used by the C1 MVC controls and extensions, and your applications may also use them.
Using CSS to define glyphs eliminates the need to deploy extra font or image files, and ensures the images are rendered using the foreground color and font size defined by the current theme.
To use C1 MVC glyphs in your applications, add a span element to your markup and set its class to the glyph name. For example:
<span class="wj-glyph-diamond"></span>
You can use CSS to customize the appearance of the glyphs used in the C1 MVC controls. For example, you could use the CSS below to hide or modify the appearance of the pencil glyph used by the FlexGrid to indicate rows in edit mode:
/* hide the pencil glyph in FlexGrid controls */ .wj-flexgrid .wj-glyph-pencil { display: none; }
/* replace the pencil glyph in FlexGrid controls with a custom image */ .wj-flexgrid .wj-glyph-pencil { background-image:url('../images/my-pencil.png'); background-repeat: round; border: 0; opacity: 1; } .wj-flexgrid .wj-glyph-pencil:after { display: none; }
The table below shows the glyphs defined in the C1 MVC CSS:
Name | Glyph | Markup |
---|---|---|
asterisk | <span class="wj-glyph-asterisk"></span> | |
calendar | <span class="wj-glyph-calendar"></span> | |
check | <span class="wj-glyph-check"></span> | |
circle | <span class="wj-glyph-circle"></span> | |
clock | <span class="wj-glyph-clock"></span> | |
diamond | <span class="wj-glyph-diamond"></span> | |
down | <span class="wj-glyph-down"></span> | |
down-left | <span class="wj-glyph-down-left"></span> | |
down-right | <span class="wj-glyph-down-right"></span> | |
file | <span class="wj-glyph-file"></span> | |
filter | <span class="wj-glyph-filter"></span> | |
left | <span class="wj-glyph-left"></span> | |
minus | <span class="wj-glyph-minus"></span> | |
pencil | <span class="wj-glyph-pencil"></span> | |
plus | <span class="wj-glyph-plus"></span> | |
right | <span class="wj-glyph-right"></span> | |
square | <span class="wj-glyph-square"></span> | |
step-backward | <span class="wj-glyph-step-backward"></span> | |
step-forward | <span class="wj-glyph-step-forward"></span> | |
up | <span class="wj-glyph-up"></span> | |
up-left | <span class="wj-glyph-up-left"></span> | |
up-right | <span class="wj-glyph-up-right"></span> |