09-21-2020 05:43 AM
[25-mar-2020 update] : removed Reset parameter, added MaxSelectedItems parameter
This component will allow you to add nice toggle sets to your applications. They are fully customizable so you will be able to give them the look and the behavior you want:
Its parameters are as follow:
@R3dKap : Really like the menu component! Planning to use it in my app.
I am new to PowerApps. How to click on the menu option to go to different screen?
I'm glad you'll be using the component in your app (if you could post a screen shot of what you did with it I'd love it! 😉).
If you want to navigate to another screen when you click on an item, here is how to do it:
Switch( First(cmpToggleSet.SelectedItems).Id, 1, Navigate(Screen4), 2, Navigate(Screen3), 23, Navigate(Screen8), etc... )
That should do the trick. Don't forget to have a look at the component on Github as there are more detailed explanations: https://github.com/e-gallis/PowerApps/tree/master/Components/ToggleSet.
Hope this helps,
Absulutely must-have as default component in PowerApps, as i think 😉
Thanks a lot for such amazing work!
Is it possible to modify it to have different SelectFill for different buttons?
I mean something like that:
In case of item 1 selected (Bad) - SelectFill=orange,
default state - item 2 selected (Non checked) - SelectFill=Blue,
item 3 selected (Good) - SelectFill=Green.
Glad you like it... 😊
Yes sure it's possible to have a specific color for each entry when it's selected. Here is how to do it:
If(LookUp(ToggleSet.SelectedItems, Id=ThisItem.Id).Id <> Blank(), ThisItem.SelectedColor, ToggleSet.ItemFill)
That should do it. I've tested it on my side and it works fine...
Yeah, now its work as i plan 🙂
Im was only 1 step from the same solution, but stucked on last step, when use incorrect referring to SelectedColor value
Again, a lot of thanks for component and support 🙂
Have tried to get this working as a navigation but it appears the OnChange value is not being passed from the component or rather it is not changing to true when a new selection is made.
Just fixed the component so the OnChange event is really triggered... (a missing semi-colon 😒).
Please download it again from Github.
Thank your for your patience... 🙏