Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Changing the icons with registerIcon
posted

Hi

I'm trying to follow this tutorial: www.infragistics.com/.../icons

And I want to use the function 'registerIcon'.

But when I try to import it like this:

import { registerIcon } from '@infragistics/igniteui-react';

I get the error:
export 'registerIcon' (imported as 'registerIcon') was not found in '@infragistics/igniteui-react'

When I run:

npm view @infragistics/igniteui-react version

I get:

19.0.1

What am I doing wrong?

Parents
No Data
Reply
  • 800
    Offline posted

    Hello Lawrence,

    Thank you for contacting Infragistics Support!

    I have been looking into your question and what I can say is that this is the correct way to import the registerIcon/registerIconFromText methods.

    In an effort to try and reproduce the described behavior, I have prepared a small sample using React version 191.0 and Ignite UI for React version 19.0.1, which at the moment of writing this are both the latest.

    On my side, I was not able to reproduce the issue, no errors were displayed, and the custom icons were rendered successfully and as expected.

    Attached can be found my sample for your reference.

    Could you please clarify if this is your first time using the Ignite UI for React package? If not, was this behavior reproducible in any of the previous versions as well?

    Also, as a side note, if you have used any of the previous versions, please note that in version 19.0.0, a lot of breaking changes were introduced, which can be found in our Changelog and Update Guide.

    To conclude, since the described behavior is not reproducible in the attached sample, in order to further investigate this matter and provide you with a solution as soon as possible, it would be highly appreciated and extremely helpful if you could provide me with a small sample that demonstrates the behavior on your side.

    Thank you for your cooperation. Looking forward to your reply.

    Sincerely,
    Riva Ivanova
    Software Developer

    4760.IgrIcon-registerIcon.zip

Children
No Data