Contentbox - Multiple Selectable Styles?

Post your ideas & suggestions for new nuBuilder features or other improvements

Contentbox - Multiple Selectable Styles?

Unread postby pmjd » Mon Oct 11, 2021 6:11 pm

Rather than having one style for all contentboxes, could there be a tickbox/field to choose to apply a custom style to the contentbox instead of a "default" style?
pmjd
 
Posts: 102
Joined: Fri Mar 12, 2021 7:08 pm
nuBuilder Version: 4.5

Re: Contentbox - Multiple Selectable Styles?

Unread postby kev1n » Wed Oct 13, 2021 12:44 am

Use jQuery/CSS to style objects.
kev1n
nuBuilder Team
 
Posts: 2062
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Contentbox - Multiple Selectable Styles?

Unread postby pmjd » Wed Oct 13, 2021 10:10 am

I understand that you can use JQuery/CSS, thanks for the previous info on JQuery styling.

However the point was to make it easier to apply different styles to Contentboxes. In the same way I could previously create a content box by adding a custom div to an html object, instead you made a good improvement of adding the Contentbox as an object type.

So the suggestion is to extend it further. Have "Contentbox" in the Object menu and have a checkbox option to use a custom style (these are defined in CSS in the header). If checked enter the CSS selector to append to the Contentbox ID.

The same idea could also be applied to button, Rather than having to get the object ID and paste in the custom code for every button on every custom form, why not include styling as a part of the button menu option? If you need to alter the style you only need to change the CSS code in the header once for it to apply to all buttons/contentboxes, instead of having to change all of them individually?
pmjd
 
Posts: 102
Joined: Fri Mar 12, 2021 7:08 pm
nuBuilder Version: 4.5

Re: Contentbox - Multiple Selectable Styles?

Unread postby kev1n » Wed Oct 13, 2021 5:32 pm

Since the contentbox consists of two child objects nuContentBoxTitle and nuContentBoxContent we would need a possibility to apply a style/class to either of them.
I need to figure out the best way to do that.
kev1n
nuBuilder Team
 
Posts: 2062
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Contentbox - Multiple Selectable Styles?

Unread postby kev1n » Fri Oct 15, 2021 5:40 pm

The latest from Github allows you to apply custom css styles to an object:

viewtopic.php?f=31&t=11294
kev1n
nuBuilder Team
 
Posts: 2062
Joined: Mon Oct 15, 2018 2:13 am
nuBuilder Version: 4.5

Re: Contentbox - Multiple Selectable Styles?

Unread postby pmjd » Sat Oct 16, 2021 1:02 am

Outstanding work, thank you kev1n
pmjd
 
Posts: 102
Joined: Fri Mar 12, 2021 7:08 pm
nuBuilder Version: 4.5


Return to Ideas & Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest