Scripting for button in split container

how to script in split container such that when we press button right split screen covers whole left split screen in perspective view of ignition scada.

Good question
Any answers?

self.getSibling("SplitContainer").props.split.position = "20%"

Adjust to suit.

Assumptions:

  • You're using a Split Container component in a view (other than a Split Container view).
  • The Split Container and button are at the same level in the Project Browser.