I wish I could manage the font characteristics in the Browse Form. For example if I wanted another font size ... another color, put in bold a field ... How to do it!? .. In the Edit Form I understood how to do it... but in the Browse Form!? Which CSS string!? Thanks in advance to those who want to help me ...
Marco
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.
Browse Form - CSS
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
-
- Posts: 41
- Joined: Thu Sep 30, 2021 10:32 am
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Browse Form - CSS
There are examples both in the Code Library and in this forum. E.g.
https://github.com/nuBuilder/nuBuilder- ... formatting
https://github.com/nuBuilder/nuBuilder- ... formatting
-
- Posts: 41
- Joined: Thu Sep 30, 2021 10:32 am
Re: Browse Form - CSS
my goal is to change the style of the font, without particular operations on the fields ... non-conditional operations ... but I don't know where to look...
-
- Posts: 41
- Joined: Thu Sep 30, 2021 10:32 am
Re: Browse Form - CSS
This Is an example ...
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4301
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Browse Form - CSS
To change a column's color, add this JavaScript to the form's Custom Code:
To increase the font size of a column, add the following class under Setup -> Header between the <style> tags:
Next, add this JavaScript to the form's Custom Code:
Code: Select all
function browseColumnColor(column, color) {
$('[data-nu-column="'+column+'"]').each(function(index) {
$(this).css("color", color);
});
}
if (nuFormType() == 'browse') {
browseColumnColor(2, 'grey'); // 3rd column grey
}
Code: Select all
.nuBrowseTableLarger {
font: 16px "Helvetica Neue",HelveticaNeue,Helvetica,Arial,sans-serif!important;
}
Code: Select all
function browseColumnFont(column, _class) {
$('[data-nu-column="'+column+'"]').each(function(index) {
$(this).addClass(_class);
});
}
if (nuFormType() == 'browse') {
browseColumnFont(0, 'nuBrowseTableLarger'); // Set a larger font in the first column
}
-
- Posts: 41
- Joined: Thu Sep 30, 2021 10:32 am