[Added] Object Style
Posted: Fri Oct 15, 2021 10:09 am
You can change the look of an object by adding an Inline CSS style:
CSS
Or by adding a Class which can be defined in Setup -> Header.
Class
ContentBox
To apply a custom style to a ContentBox, pass an associative array {"class name": "css style"}
To apply classes to the ContentBox, define the CSS in Setup -> Style, select "Class" in the dropdown with an array like
CSS in Setup -> Style:
To apply css to a label and a different style to an object:
CSS
Or by adding a Class which can be defined in Setup -> Header.
Class
Code: Select all
.city {
background-color: tomato;
color: white;
border: 2px solid black;
}
To apply a custom style to a ContentBox, pass an associative array {"class name": "css style"}
Code: Select all
{"nuContentBoxTitle":"background-color:red;border-color:blue","nuContentBoxContent":"border: 1px dashed green;"}
Code: Select all
{"nuContentBoxTitle":"myContentBoxTitle","nuContentBoxContent":"myContentBoxContent"}
Code: Select all
.myContentBoxContent {
border:1px solid red;
background-color:blue
}
.myContentBoxTitle {
color:green;
font-size:18px;
}
Code: Select all
{"label":"color:red", "this":"color:red;border-color:blue"}