Infinable Docs
Search
K

Style Properties

When you create a new plugin interface element, you can define the default style properties of the element. These properties can be changed later from the style properties panel in the layout editor.
The default style properties are defined as a json property, for example:
{
width: "auto",
height: "auto",
minWidth: "auto",
minHeight: "auto",
maxWidth: "none",
maxHeight: "none",
backgrounds: [],
borderPositions: [],
borderStyle: "none",
borderSize: 0,
borderColor: "black",
borderRadius: 0,
fontFamily: "Roboto",
color: "black",
fontSize: 15,
boxShadows: [],
textShadows: []
}
Here is the list of style properties that can be defined for an interface element:

Dimensions