Set the readOnly property to true to protect the Diagram UI component from edit operations. In this mode, the UI component hides its UI elements: the toolbox, history toolbar, and properties panel.
true
View Demo