Any way to remove underline from hyperlinks?

Posted by: mserban on 24 April 2018, 12:04 am EST

    • Post Options:
    • Link

    Posted 24 April 2018, 12:04 am EST

    Hello,

    Is there any way, now, in spreadjs 11, to remove underline from hyperlinks? If I’m clearing formats to a cell in excel that has a hyperlink, it will remove the underline and I want this to be shown in spread as well.

    Thanks,

    Mircea

  • Posted 24 April 2018, 10:26 pm EST

    Hello,

    You can set the text decoration for the cell’s text to ‘none’. For example:

    activeSheet.getCell(0, 0).textDecoration(GC.Spread.Sheets.TextDecorationType.none);

    Thanks,

    Deepak Sharma

  • Posted 24 April 2018, 11:54 pm EST

    Hello,

    Thank you for your answer but the underline is still present even if text decoration is set to none. Any other ideas?

    Thanks,

    Mircea

  • Posted 27 April 2018, 12:14 am EST

    Hello,

    In case you do not want the hyperlink. You can simply set the cell as text cell and handle it’s click event to open the desired link in browser. You can lock the cell too so that the end user can not edit it.

    Thanks,

    Deepak Sharma

Need extra support?

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

Learn More

Forum Channels