Gets or sets the visibility of this control.
Namespace: MindFusion.Common
File: Control.js
JavaScript Copy Code |
---|
get visible() {} |
Boolean. True if the control is visible, otherwise false.
The following code opens a Window instance if it is not already opened e.g. visible.
JavaScript Copy Code |
---|
var window = host.windows.where(function (window) { return window.data == args.item }).first(); if (window) { if (!window.visible) window.open(); if (window.windowState != ui.WindowState.Normal) window.restore(); host.bringToFront(window); } |