Hi everyone,
I have a navigation pane for which I have 4 different screens.The issue is when I click on one screen label it should deselect other screen label or icon .
I have used 4 variables for 4 icons and 4 variables for 4 labels. So totally 8 different variables.
Can someone help me regarding this.
Thanks in advance
Hi but when i click on other icon or label the other should get deselected
In my opinion a gallery would simplify this a whole bunch by removing the need for all the variables and repeated controls, however if it must be done this way, consider:
Have each label update one variable OnSelect = UpdateContext({locVariable: Self.Text}).
Then have each label's Fill property be something like:If(locVariable = Self.Text, Green, Blue)
Edit: Since I'm realizing now this is a navigation pane, probably should use a global variable:
OnSelect = Set(varVariable, Self.Text)
Then have each label's Fill property be something like:
If(varVariable= Self.Text, Green, Blue)
Is that a gallery? You can use ThisItem.IsSelected to change your colors. If(ThisItem.IsSelected, Green, Blue)
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2