Skip to content

Infragistics Community Forum / Web / Ignite UI for Angular / Need to display an icon of ms-excel instead of text

Need to display an icon of ms-excel instead of text

New Discussion
Shobhana Suara
Shobhana Suara asked on Mar 15, 2021 6:49 AM

Hi Team,

I am using Infragistics version 9.1.12 and Angular version 9.

Scenario: I have a igx data grid and a feature button below the grid to export the grid data to excel

Requirement: Need to display ms-excel icon of green color and transparent button background color instead of text stating “Export to excel”.

Tried the below code snippet but was not able to display the icon:

<button igxButton=”raised” (click)=”exportButtonHandler()” class=”exportButton” igxButtonBackground=”transparent”>
<igx-icon fontSet=”material”>ms-excel</igx-icon>
</button>
Hope to get solution soon!!
Thanks in advance!
Sign In to post a reply

Replies

  • 0
    N. Ishibashi
    N. Ishibashi answered on Feb 26, 2021 1:21 AM

    Hi Shobhana Suara,

    Thank you for posting your inquiry to our forum.

    We are investigating your issue. As it takes some more time until we can give you an update, could you wait for a while?

    Thank you in advance.

    • 0
      Shobhana Suara
      Shobhana Suara answered on Mar 2, 2021 8:33 AM

      Is there any progress yet w.r.t. my query. Please respond.

      • 0
        Morgan  Ritchie
        Morgan Ritchie answered on Mar 15, 2021 6:49 AM

        Excellent support on your end Shobhana Suara! Good job! Keep up the good work!

  • 0
    Yuu Furugen
    Yuu Furugen answered on Mar 2, 2021 8:43 AM

    Hi Shobhana Suara,

    Thank you for posting our forum.

    The following steps to display MS-Excel icon.

    1) Installation

    npm install @igniteui/material-icons-extended

    2) Register a single icon in our component (*.ts)
    ——————————————————————–
    import { msExcel } from "@igniteui/material-icons-extended";

    constructor(private iconService: IgxIconService) {}

    ngOnInit() {
        this.iconService.addSvgIconFromText(msExcel.name, msExcel.value, "imx-icons");
    }
    ——————————————————————–

    3) Use the icons in your component template (*.html)
    ——————————————————————–
    <igx-icon fontSet="imx-icons" name="msExcel"></igx-icon>
    ——————————————————————–

    Material Icons Extended
    https://es.infragistics.com/products/ignite-ui-angular/angular/components/material-icons-extended

    I attached an sample, I hope this helps you.

    SampleIcon.zip

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Shobhana Suara
Favorites
0
Replies
4
Created On
Mar 15, 2021
Last Post
4 years, 11 months ago

Suggested Discussions

Created by

Created on

Mar 15, 2021 6:49 AM

Last activity on

Feb 16, 2026 9:17 PM