Dynamically change docked view from push to cover?

Is it possible to use a binding or a script to change a docked view from push to cover based on something like the viewport width?

I believe if you're on v8.1.19+, you can use the system.perspective.alterDock function and pass in a content property (push, cover or auto).

How you would determine the viewport width, I'm not sure of that... I could have sworn there was an update that included a viewport width property, but I couldn't find it in the designer or in the Ignition release notes. Maybe @victordcq can help us...

2 Likes

The viewport width can be found from here: self.page.props.dimensions.viewport.width. I'll try the alter dock function, thanks!

1 Like

I knew it was somewhere! Thank you for giving me that information.