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





Gets or sets an object, holding custom user data.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

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

 Property Value

Object. The custom user data.

 Remarks

Use this property to hold useful data in conenction with the Control.

 Example

The following code checks if the data of a MapView instance is 1. 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)
{
    //do something
}

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace