MindFusion.Charting for JavaScript Programmer's Guide
Control.visible Property
See Also
 






Gets or sets the visibility of this control.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get visible() {}

 Property Value

Boolean. True if the control is visible, otherwise false.

 Example

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);
}

 See Also

Control Members
Control Class
MindFusion.Common Namespace