Models.ContainerStyle Class
Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Class used to specify the properties of a container style.
Constructors
ContainerStyle
ContainerStyle ()
Constructor.
ContainerStyle
(String) Constructor
ContainerStyle (String name)
Constructor.
Properties
BaseCssClass
Property
Specifies a "base" css class which must be applied to any container which has a style value from this container style selected.
Examples
@property --border-color
{
/* title: Border Color */
/* baseClass: container-border */
syntax: "<color>";
inherits: true;
initial-value: black;
}
CustomValue
Property
A custom value for the container style. This value can be null.
Disabled
Property
Specifies that the container property is disabled. This is used by containers which needs to suppress unsupported container properties, like the no-title container, which disables the title-related container properties.
Group
Property
Specifies the group for the container style. Styles are group by 'Group' in the module settings page.
Examples
@property --border-color
{
/* title: Border Color */
/* group: Border */
syntax: "<color>";
inherits: true;
initial-value: black;
}
Name
Property
The name of the style value. This is derived from the Css @property name if the property which represents this container style.
PreserveOrder
Property
Specifies that the values should appear in the order that they are specified in the css file.
Examples
@property --title-alignment
{
/* title: Title Alignment */
/* preserveOrder: true */
...
}
SelectedValue
Property
The Css class of the selected container style value. This value can be null.
Title
Property
The display text for the container style, used for on-screen display.
Examples
@property --border-color
{
/* title: Border Color */
/* baseClass: container-border */
syntax: "<color>";
inherits: true;
initial-value: black;
}
Values
Property
A list of available values for the container style.