Gets or sets a string, specifying the URL of the web page, that will be loaded as a control content template.
Namespace: MindFusion.Common.UI
File: WindowBase.js
JavaScript
![]() |
---|
get templateUrl() {} |
String. A string specifying the URL of the web page, that will be loaded in the control's content IFrame.
The following code uses the templateUrl property to specify the URL of the web page to serve as a template for the content of the Window:
JavaScript
![]() |
---|
function handleItemDoubleClick(sender, args) { if (args.item.data) { window = new ui.Window(); window.top = ui.Unit.percentage(25); window.left = ui.Unit.percentage(25); window.width = ui.Unit.pixel(400); window.height = ui.Unit.pixel(300); window.minWidth = ui.Unit.pixel(250); window.minHeight = ui.Unit.pixel(300); window.title = args.item.title; window.data = args.item; window.templateUrl = "ChatWindow.html"; } } |