Hello Community,
I would like to use a Gallery to show a group of selected Built-In-Icons (e.g., collected in Collection). Just icons. Is that doable?
Any solution/hint would be much appreciated.
Tnxs
br
Solved! Go to Solution.
Hi,
sure this is possible and even necessary if you for example want to create a navigation component.
Here is an example for a collection where I store the icons and the screen to navigate to.
ClearCollect(
config;
{
ScreenID: 1;
ScreenName: "Overview";
Icon: Icon.Home;
Screen: Overview
};
{
ScreenID: 2;
ScreenName: "Time";
Icon: Icon.Clock;
Screen: 'Travel and Time'
};
{
ScreenID: 3;
ScreenName: "Shopping Cart";
Icon: Icon.ShoppingCart;
Screen: 'Shopping Cart'
}
)
Of course you could only collect these items.
ClearCollect(
colIcons;
{Icon: Icon.Home};
{Icon: Icon.Clock};
{Icon: Icon.ShoppingCart}
)
Then Place an icon inside the gallery and set the Icon.Icon = ThisItem.Icon.
Gallery.Items = config or colIcons.
Hope this helps.
Best regards
Florian
Hi,
sure this is possible and even necessary if you for example want to create a navigation component.
Here is an example for a collection where I store the icons and the screen to navigate to.
ClearCollect(
config;
{
ScreenID: 1;
ScreenName: "Overview";
Icon: Icon.Home;
Screen: Overview
};
{
ScreenID: 2;
ScreenName: "Time";
Icon: Icon.Clock;
Screen: 'Travel and Time'
};
{
ScreenID: 3;
ScreenName: "Shopping Cart";
Icon: Icon.ShoppingCart;
Screen: 'Shopping Cart'
}
)
Of course you could only collect these items.
ClearCollect(
colIcons;
{Icon: Icon.Home};
{Icon: Icon.Clock};
{Icon: Icon.ShoppingCart}
)
Then Place an icon inside the gallery and set the Icon.Icon = ThisItem.Icon.
Gallery.Items = config or colIcons.
Hope this helps.
Best regards
Florian
Hello @Florian_Kleinz,
great. I tried (your suggestion a bit modified) and it works.
At this time I believe it might be I will need components afterall. As my Icon.Onelect is not navigation to other screen but some actions on the same screen. However your suggestion offers what I was asking for. I am marking your answer as a solution.
Additionally, I would also need some CoreControles (e.g., Slider, ComboBox, Radio) included into collection. Is that also possible - I don't know how to address the controls? I found something like 'Microsoft.CoreControls', am I in (aprox) right direction?
Tnxs
br
@RMC-Pro
Hello @Florian_Kleinz,
great. I tried (your suggestion a bit modified) and it works.
At this time I believe it might be I will need components afterall. As my Icon.Onelect is not navigation to other screen but some actions on the same screen. However your suggestion offers what I was asking for. I am marking your answer as a solution.
Additionally, I would also need some CoreControles (e.g., Slider, ComboBox, Radio) included into collection. Is that also possible - I don't know how to address the controls? I found something like 'Microsoft.CoreControls', am I in (aprox) right direction?
Tnxs
br
@RMC-Pro
Hello,
you can add every control inside a gallery.
It depends what you want to do with these controls.
In this case you need to use PATCH to update your collection.
Best regards
Hi @Florian_Kleinz ,
I know I can put Contros into Gallery, I was thinking of building a Collection with mixure of Icons and Controls which then I would put into a Gallery - scrolling left and right (having cool Menu Line). That seems doesn't work.
But everything else, with Icons (scrolling left-right, different OnSelect - on the level of Gallery, ...), works as a hoped for.
Tnxs
br
@RMC-Pro
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
186 | |
52 | |
50 | |
34 | |
33 |
User | Count |
---|---|
267 | |
97 | |
84 | |
72 | |
71 |