Hi, I can't make independend template size in main gallery which is depended on nested gallery side on button click.. Can't find solution fro hours 😞
Main gallery templatesize is:
nested gallery is full with data on click:
and set height depend on button click..
But every template is the same, how to make individual row height?
Hey ShpxLbh,
what about something like this using a Blank Flexible Height Gallery:
Using a collection like this:
ClearCollect(
collection,
Table(
{
Title: "1",
Fill: Color.Blue,
MakeBig: false
},
{
Title: "The Quick Brown Fox Jumps Over The Lazy Dog",
Fill: Color.Yellow,
MakeBig: false
},
{
Title: "Cheddar Cheese",
Fill: Color.Red,
MakeBig: false
}
)
)
We can use the MakeBig boolean value to control the height of a label in the gallery.
Code in the Button (Although this could be anything OnSelect-y
UpdateIf(collection,ThisItem.Title = ThisRecord.Title,{MakeBig: !MakeBig})
The Label control then has its height defined by the variable:
If(ThisItem.MakeBig,40,100)
I've used a label as an example here, but it can also be blank:
One caveat is you'll need to define the Height/Y co-ordinates of objects based on the state of the boolean value.
A nested gallery, for example, could have its Height (Not it's template height) defined by the parent collection.
Hope this helps you out 🙂
resolved. you have to use flexible gallery for that, You can't make it on standard gallery, even with some coding inside - it isn't work so good and smooth like on flexible gallery.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.