Posted 27 February 2024, 7:49 am EST
Hello, I need to create some new functions in the ribbon, but I would like it to be a styled button, or text. How can I proceed with this?
Forums Home / Spread / SpreadJS
Posted by: pedro.moraes on 27 February 2024, 7:49 am EST
Posted 27 February 2024, 7:49 am EST
Hello, I need to create some new functions in the ribbon, but I would like it to be a styled button, or text. How can I proceed with this?
Posted 27 February 2024, 3:49 pm EST
Hi,
You could refer to the following docs on adding a button in a tab: https://developer.mescius.com/spreadjs/docs/spreadjs_designer_component/customizations/add_button_in_tab
Also, refer to the following docs on the Customizations available in Designer Component: https://developer.mescius.com/spreadjs/docs/spreadjs_designer_component/customizations
Regards,
Ankit
Posted 27 February 2024, 11:03 pm EST - Updated 27 February 2024, 11:08 pm EST
I need to create a custom component like here
but I can’t do it
the component needs to have a button like this
Posted 28 February 2024, 8:01 pm EST
Hi,
Kindly refer to the following sample in which I have added the button similar to the image that you have shared.
Similar to this, you could add another custom component by overriding various methods as shown in the Docs: https://developer.mescius.com/forums/spreadjs/custom-button-ribbon
The “css” for the button is defined in the “index.html” file.
Let me know if you face any issue.
Regards,
Ankit