tooltip.cssClass error

Posted by: riya.katawate16 on 4 August 2022, 9:58 pm EST

  • Posted 4 August 2022, 9:58 pm EST

    Hi Team,
    to show the tooltip on header row, I am using below. I want to add custom class to tooltip. Getting error as property does not exist on tooltip.

    var tooltip = new wjcCore.Tooltip();
    tooltip.cssClass = 'customTooltip' // error.

    kindly help.
  • Replied 5 August 2022, 5:14 am EST


    We are sorry but we are unable to replicate the issue at our end. Please refer to the following sample that demonstrates adding custom classes to tooltips:

    If the issue persists, please share a small sample that replicates the issue so that we could further investigate the issue and assist you accordingly.

  • Replied 10 August 2022, 12:36 am EST

    Hi Team,
    I am not able to add custom class to tooltip .
    var tooltip = new wjcCore.Tooltip();
    tooltip.cssClass = 'customTooltip'

    tooltip.cssClass gives error "As property does not exist"

    what might be reason? I am using wijmo "version": "5.20173.405",
  • Marked as Answer

    Replied 11 August 2022, 5:51 pm EST


    I'm affrad but the cssClass property wasn't added to Tooltip class in the wijmo version 5.20173.405. You can either upgrade to the latest wijmo version to resolve the issue or instead of adding a new custom class to apply the CSS you can directly apply the CSS on the tooltip class '.wj-tooltip' like:

    background-color: cyan !important;

    Please let me know in case you have further queries.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels