Welcome to the nuBuilder forums!

Please register and login to view forums and other content only available to registered users.

[Added] ContentBox Object

Information about updates, news, Code Library
Post Reply
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

[Added] ContentBox Object

Unread post by admin »

Group related information into logical blocks or sets. Grouping together related fields will also help users make sense of the information they must fill in.
The new ContentBox makes it easy to add a visual and semantic grouping for form controls.

Demo at https://demo.nubuilder.cloud/

Compare the ungrouped data:
ContentBox.png
ContentBox.png (12.6 KiB) Viewed 339 times
... with a form using ContentBox
ContentBox_2.png
ContentBox_2.png (18.34 KiB) Viewed 339 times
Adding a ContentBox:
object_contentbox.png
object_contentbox.png (7.37 KiB) Viewed 339 times
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: [Added] ContentBox Object

Unread post by admin »

"Arrange Objects" now also shows the ContentBox "frame"
Attachments
Video_2021-07-24_013916.gif
Video_2021-07-24_013916.gif (3.16 MiB) Viewed 334 times
admin
Site Admin
Posts: 2781
Joined: Mon Jun 15, 2009 2:23 am
nuBuilder Version: 4.5
Been thanked: 1 time

Re: [Added] ContentBox Object

Unread post by admin »

By modifying and adding these 3 classes in the Header Tab of Setup, you can customise the look of the ContentBox.

Code: Select all

 .nuContentBox .content {
	height:inherit;
	padding:10px;
	font-size:15px;
	border-bottom-left-radius:7px;
	border-bottom-right-radius:7px;
	border:1px solid #dddddd;
	background-color:#fff
}
 .nuContentBox .title {
	height:4px;
	line-height:4px;
	border-top-left-radius:7px;
	border-top-right-radius:7px;
	color:#333;
	font-size:14px;
	font-weight:700;
	font-family:sans-serif,"Segoe UI",Helvetica,"Helvetica Neue",Arial,sans-serif;
	display:block;
	padding:9px;
	letter-spacing:1px
}
 .nuContentBox {
	z-index:-1;
	position:absolute;
	height:90px
}

Example, colors changed:
custom_color.png
custom_color.png (20.19 KiB) Viewed 333 times

Update: Styling has become even easier:
https://forums.nubuilder.cloud/viewtopic.php?f=31&t=11294
Post Reply