Welcome to the nuBuilder Forums!

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

Contentbox - Multiple Selectable Styles? [done]

Post your ideas & suggestions for new nuBuilder features or other improvements
Post Reply
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Contentbox - Multiple Selectable Styles? [done]

Unread post by pmjd »

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?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Contentbox - Multiple Selectable Styles?

Unread post by kev1n »

Use jQuery/CSS to style objects.
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Re: Contentbox - Multiple Selectable Styles?

Unread post by pmjd »

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?
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Contentbox - Multiple Selectable Styles?

Unread post by kev1n »

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: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Contentbox - Multiple Selectable Styles?

Unread post by kev1n »

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

https://forums.nubuilder.cloud/viewtopic.php?f=31&t=11294
pmjd
Posts: 132
Joined: Fri Mar 12, 2021 10:38 am
Has thanked: 3 times
Been thanked: 1 time

Re: Contentbox - Multiple Selectable Styles?

Unread post by pmjd »

Outstanding work, thank you kev1n
Post Reply