Package ro.sync.ecss.css.functions
Interface LabelCSSConstants
@API(type=EXTENDABLE,
src=PUBLIC)
public interface LabelCSSConstants
Processed arguments of the oxy_label function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA background color for the label.static final StringBase system id to be used to resolve imports fromSTYLES_PROPERTY.static final StringA foreground color for the text.static final StringPossibility to specify CSS rules for this label.static final StringThe alignment of the label.static final StringThe text that will be displayed as a label.static final StringThe width of the label.
-
Field Details
-
TEXT_PROPERTY
The text that will be displayed as a label. A string value.- See Also:
-
WIDTH_PROPERTY
The width of the label. AnRelativeLength.Note: In case you don't have the possibility to build a
RelativeLengththen you can use theSTYLES_PROPERTYto give the width as a string:* { width:100px; }- See Also:
-
TEXT_ALIGN_PROPERTY
The alignment of the label. A string value: left, right or center.- See Also:
-
COLOR_PROPERTY
A foreground color for the text. AColor.- See Also:
-
BACKGROUND_COLOR_PROPERTY
A background color for the label. AColor.- See Also:
-
STYLES_PROPERTY
Possibility to specify CSS rules for this label.
Example:
The selectors are ignored, all rules are considered to match.* { text-align:right; color:red; }You can also specify as CSS something like:
The following properties are handled:@import 'label_styles.css';Relative imports will be resolved relative toBASE_SYSTEM_ID. This approach is useful to easily reuse the same styles for more oxy_labels.- font-weight, font-size, font-style, font
- text-align, text-decoration
- width
- color, background-color
- See Also:
-
BASE_SYSTEM_ID
Base system id to be used to resolve imports fromSTYLES_PROPERTY. This normally is the system ID of the CSS file in which the oxy_label was encountered.- See Also:
-