cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RMC-Pro
Helper II
Helper II

A horizontal gallery of builtin-icons

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

@RMC-Pro

1 ACCEPTED SOLUTION

Accepted Solutions
Florian_Kleinz
Resolver II
Resolver II

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

 

View solution in original post

5 REPLIES 5
Florian_Kleinz
Resolver II
Resolver II

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

 

View solution in original post

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

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,200)