Welcome to the nuBuilder Forums!

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

Subform with no headings Topic is solved

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
incoherence
Posts: 22
Joined: Sun May 08, 2022 2:36 pm
Has thanked: 9 times
Been thanked: 1 time

Subform with no headings

Unread post by incoherence »

Hi, is it possible to set an option on a subform so that the column headings are not shown, please? (I can use a tool tip to provide information on what the data is, and the headings take up quite a lot of space). Many thanks!
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform with no headings

Unread post by kev1n »

Hi,

You will need to do it with JS:

Code: Select all

function nuSubformHideHeader(id) {
	const scrollDiv = $('#' + id + 'scrollDiv');
	scrollDiv.css({top: 0, height: $('#' + id).cssNumber('height')});
}
E.g. Parameter: Your subform Id

Code: Select all

nuSubformHideHeader('accphp');
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Subform with no headings

Unread post by kev1n »

The function is now on Github with additional improvements so that the Options Menu is transparent and appears only when you hover over it.
incoherence
Posts: 22
Joined: Sun May 08, 2022 2:36 pm
Has thanked: 9 times
Been thanked: 1 time

Re: Subform with no headings

Unread post by incoherence »

Works like a charm - thanks kev1n!
Post Reply