Gets or sets a value indicating whether this Window should be modal.
Namespace: MindFusion.Common.UI
File: Window.js
SyntaxJavaScript
Copy Code
|
|---|
get modal() {} |
Boolean. value true if the Window should be modal, otherwise false.
ExampleThe following code creates a new Window instance, sets its modal property together with other properties and opens it:
JavaScript
Copy Code
|
|---|
| var window = new ui.Window(); window.top = ui.Unit.percentage(25); window.left = ui.Unit.percentage(25); window.minWidth = ui.Unit.pixel(600); window.minHeight = ui.Unit.pixel(600); window.title = "Statistics"; window.data = chartItem.item; window.templateUrl = "ChatWindow.html"; window.iconSrc = "icons\chart.png"; window.modal = true; window.open(); |
See Also