ASP.NET Pack Programmer's Guide
Control.loaded Property
See Also
 





Gets a value indicating whether this control is loaded and ready for interaction.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Control.prototype, "loaded", { value: Boolean });

 Property Value

Boolean. true if the Control is loaded; otherwise false.

 Example

The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it checks if the Control is loaded. The MapView class derives from Control.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.left = new m.Unit(50, m.UnitType.Pixel);
view.licenseLocation = "forbidden/license.txt";

if(view.loaded)
{
    //do something
}

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace