Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[Added] Object Style

Information about updates, news, Code Library
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

[Added] Object Style

Unread post by admin »

You can change the look of an object by adding an Inline CSS style:

CSS
input_css.jpg
Or by adding a Class which can be defined in Setup -> Header.

Class
input_class.jpg

Code: Select all

.city {
  background-color: tomato;
  color: white;
  border: 2px solid black;
}
ContentBox

To apply a custom style to a ContentBox, pass an associative array {"class name": "css style"}
contentbox_css.jpg

Code: Select all

{"nuContentBoxTitle":"background-color:red;border-color:blue","nuContentBoxContent":"border: 1px dashed green;"}
To apply classes to the ContentBox, define the CSS in Setup -> Style, select "Class" in the dropdown with an array like

Code: Select all

{"nuContentBoxTitle":"myContentBoxTitle","nuContentBoxContent":"myContentBoxContent"}
CSS in Setup -> Style:

Code: Select all

.myContentBoxContent {
   border:1px solid red;
   background-color:blue
}

.myContentBoxTitle {
   color:green;
   font-size:18px;
}
To apply css to a label and a different style to an object:

Code: Select all

{"label":"color:red", "this":"color:red;border-color:blue"}
You do not have the required permissions to view the files attached to this post.
Post Reply