Customize Download button from Action

Hi,

instance.enableElements([‘downloadButton’]);
We need to customize click of download button. we need to overtight our action on it.

Hey there!

You can use the updateElement API to do this:

  instance.updateElement('downloadButton', {
    onClick: () => {
      console.log('test')
    }
  })

Thanks!
Logan

@Logan, Thanks for your reply. It’s worked for me.

1 Like