Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Contentbox - Multiple Selectable Styles? [done]
Contentbox - Multiple Selectable Styles? [done]
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?
-
- 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?
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?
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?
-
- 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?
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.
I need to figure out the best way to do that.
-
- 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?
The latest from Github allows you to apply custom css styles to an object:
https://forums.nubuilder.cloud/viewtopic.php?f=31&t=11294
https://forums.nubuilder.cloud/viewtopic.php?f=31&t=11294