How to change an icon to text in SpreadJS Designer Components?

Posted by: roywebweb123 on 10 February 2021, 9:11 am EST

  • Posted 10 February 2021, 9:11 am EST

    Hi,

    Is there a way to change an icon to text in SpreadJS Designer Components?

    I try to add commandMap for copy, cut, and paste, but I could not get the logic of copy, cut, and paste to work




    Thanks
  • Marked as Answer

    Replied 11 February 2021, 4:57 pm EST

    Hi Roy,

    You may use ribbon-button-cut or ribbon-button-copy, gc-accessbar-undo, gc-accessbar-redo clasess. please refer to the following code snippet and attached sample that demonstrates the same.


    .ribbon-button-cut { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QA/wD/AP+gvaeTAAABH0lEQVQ4jcXSTyuEURQG8B+G0CQjCySRiKKsUJRka28pZWVv7QNYSfkAVj6BUvYWlBUWU2qSxZQI5U/yZ/Geyds075SVZ3Nv55z7POc89/DfaKqT68QW5nGCz1pFjXUIZnERD3uziuoRrKZU17OKGuJcwCgKeEYbmrGLQcxF7iHOVxzjKhcEt1iJxCXu8I03lJCPbnswGW8O+DXxHueYjvspikHyEQI59GMIm3hKE4jWS1hGH86qxt3AALbxWAlWm1isMNdAQ3RSTger92AewzjEu8S8EVzjC2OhXs4iWMALWrEkcXw8RmqRfGs7rmqN0IUJifMzoXSEfclWzsR4i2nFXOqeRzemsIObVG4vyNckX5mJgmSJspBHRz2CP+MHEhM4efdBQXcAAAAASUVORK5CYII=") }



    Regards
    Avinash

    designer_CDN.zip

Need extra support?

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

Learn More

Forum Channels