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





Gets or sets a value indicating whether user interactions are allowed for this control.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

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

 Property Value

Boolean. True if user interactions are allowed, 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 data for this view is set to 1 and if yes - disables the control. 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.data = 1;
...................
.....................
if(view.data == 1)
{
    view.enabled = false;
}

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace