Page 1 of 1
Disable Save and Open on Designer Preview - JS
Posted: Mon Aug 03, 2020 2:48 pm
by nickdavies07
How can I disable the Save and Open buttons under 'Preview' on the designer?
Code: Select all
options.toolbar.showSaveButton = false
This only disables the option in the top left, and
only disables under the file menu.
Re: Disable Save and Open on Designer Preview - JS
Posted: Tue Aug 04, 2020 7:20 am
by nickdavies07
OK so I've found the following options in the StiDesignerOptions object:
Code: Select all
options.viewerOptions.toolbar.showOpenButton = false;
options.viewerOptions.toolbar.showSaveButton = false;
However, the options.viewerOptions.toolbar.showSaveButton does not work. It throws an error
Code: Select all
Unhandled promise rejection TypeError: can't access property "items", c is undefined
Any support is greatly appreciated.
Re: Disable Save and Open on Designer Preview - JS
Posted: Thu Aug 06, 2020 9:30 am
by Lech Kulikowski
Hello,
The issue is fixed. The fix will be available in the next release build.
Thank you.
Re: Disable Save and Open on Designer Preview - JS
Posted: Tue Aug 25, 2020 10:33 am
by nickdavies07
Thanks,
I can confirm that in the latest release 2020.4 that this is now fixed and working as it should.
Nick
Re: Disable Save and Open on Designer Preview - JS
Posted: Wed Aug 26, 2020 8:17 pm
by Lech Kulikowski
Hello
We are always glad to help you!
Thank you.