Page 1 of 1

layout grid section

Posted: Sat Jul 08, 2023 2:52 pm
by Paul
Hi Pablo,

Is it possible to make a layout grid section invisible with code? Example a user clicks on an image and makes a grid section invisible.

Thank you

Re: layout grid section

Posted: Sat Jul 08, 2023 3:02 pm
by crispy68
When you say invisible, are you wanting the grid column to just be 'blank' or are you wanting the # of columns to change?

In other words, if I have 3 columns, I click the image and column 3 becomes invisible, are you now wanting only wanting 2 columns where the 2 columns fills the empty space left by column3? or do you still want 3 columns but just column 3 is empty?

Re: layout grid section

Posted: Sat Jul 08, 2023 3:18 pm
by Paul
En d'autres termes, si j'ai 3 colonnes, je clique sur l'image et la colonne 3 devient invisible.

voulez-vous maintenant ne vouloir que 2 colonnes où les 2 colonnes remplissent l'espace vide laissé par la colonne 3 ? Yes :D

Re: layout grid section

Posted: Sat Jul 08, 2023 5:00 pm
by Paul
In other words, if I have 3 columns, I click the image and column 3 becomes invisible, are you now wanting only wanting 2 columns where the 2 columns fills the empty space left by column3? yes

Re: layout grid section

Posted: Sat Jul 08, 2023 8:16 pm
by crispy68
This cannot be done simply with WB and would require the use of a script.

Is this what you are after?
https://webbuildertemplates.com/demo/toggle

Re: layout grid section

Posted: Sat Jul 08, 2023 8:59 pm
by bkjohns
You could make two layout grids, one with 3 columns and one with two and use the on click/toggle the grid you want to hide after the click. You could also make two grids with 3 columns but layout the one you want to show after the click to your liking. Kind of a rough work around but doable.

Re: layout grid section

Posted: Sat Jul 08, 2023 9:08 pm
by onlye
crispy68 wrote: Sat Jul 08, 2023 8:16 pm Is this what you are after?
https://webbuildertemplates.com/demo/toggle
Well that is just pretty cool crispy.