How to hide the settings here?

Stimulsoft Dashboards.WEB discussion
Post Reply
kingreatwill
Posts: 1
Joined: Fri Sep 24, 2021 2:28 am

How to hide the settings here?

Post by kingreatwill » Fri Sep 24, 2021 2:32 am

How to hide "New Data Transformation..." and "Actions"?
Attachments
QQ截图20210924103039.png
QQ截图20210924103039.png (32.96 KiB) Viewed 144 times
Lech Kulikowski
Posts: 4052
Joined: Tue Mar 20, 2018 5:34 am

Re: How to hide the settings here?

Post by Lech Kulikowski » Mon Sep 27, 2021 7:16 am

Hello,

You can use the following code:

Code: Select all

<div>
        <cc3:StiWebDesigner runat="server" ID="StiWebDesigner1"  />
    </div>
    <script>
        //where jsStiWebDesigner1 -> "js" + Designer ID
        jsStiWebDesigner1.onready = function () {
            var dictionaryPanel = jsStiWebDesigner1.options.dictionaryPanel;
            dictionaryPanel.toolBar.updateControls_ = dictionaryPanel.toolBar.updateControls;

            dictionaryPanel.toolBar.updateControls = function (currentMenu) {
                dictionaryPanel.toolBar.updateControls_(currentMenu);
                if (currentMenu) currentMenu.items.dataTransformationNew.style.display = "none";
            }

        }
    </script>
Thank you.
Post Reply