Custom Buttons in dialog

Posted by: m.holland-moritz on 25 March 2021, 7:46 pm EST

  • Posted 25 March 2021, 7:46 pm EST

    Hello Support Team,

    i created a dialog for the SpreadJS Designer. In this dialog i insert a IButtonOption. This button should make some additional options visible.

    I took a look at the "FindDialogInput". There is a button what is doing exactly this, but it has a bindingPath, which returns true or false somehow. A "normal" button doesn't do that by it's own. I assume that is, because it has not a normal buttontype. ("FindSwitchButtonEditor")

    I found all parameters i can use for a IButtonOption, but i can't find where i can put the function that returns true or false or even a whole function, that does something with all the variables used in the dialog (inputfields etc.)

    Regards
    Maik
  • Marked as Answer

    Replied 30 March 2021, 11:50 pm EST

    Hi Maik,

    We are sorry but this is currently not supported as the default behavior. I've prepared a sample to demonstrate how you could create a custom component to achieve the required functionality. Please refer to the following sample and let me know if you face any issues:
    https://codesandbox.io/s/spread-js-starter-forked-e99n5?file=/src/index.js

    Regards
    Sharad
Need extra support?

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

Learn More

Forum Channels