This function can be used in conjunction with the CSS content property
to change the style of generated text.
em,
ex), absolute (in, cm,
mm, pt, pc, px), and
percentage (followed by the % character) length units. The
width property takes precedence over the columns
property (if the two are used together).color property is
inherit, the form control has the same color as the element that was
used to insert it.background-color property is inherit, the form control
has the same color as the element that was used to insert it.element{
content: oxy_label(text, "Label Text", styles,
"font-size:2em;color:red;link:attr(href);");
}
styles property individually, you
can define them in a CSS file as in the following
example:* {
width: 40%;
text-align:center;
}@import directive, as
follows:elem {
content: oxy_label(text, 'my_label', styles, "@import 'labels.css';")
}styles property may lead to
performance issues.oxy_label() function contains new lines, for example
oxy_label(text, 'LINE1\A LINE2', width, 100px), the text is split in two.
Each of the two new lines has the specified width of 100 pixels.\A, which represents a new line character.You can use the oxy_label() function together with a built-in form control function to create a
form control based layouts.
Example: oxy_label Function
person:before {
content: "Name:*" oxy_textfield(edit, '@name', columns, 20)
"\A Address:" oxy_textfield(edit, '@address', columns, 20)
}oxy_label() to style each label
differently.person:before {
content: oxy_label(text, "Name:*", styles, "font-weight:bold;width:200px")
oxy_textfield(edit, '@name', columns, 20) "\A "
oxy_label(text, "Address:", styles, "width:200px")
oxy_textfield(edit, '@address', columns, 20)
}oxy_label function with the Content Completion
Assistant by pressing Ctrl +
Space and select the
oxy_label code template.