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





Gets or sets the css class of the control.

Namespace: MindFusion.Mapping
Package: Control.js

 Syntax

JavaScript  Copy Code

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

 Property Value

String. The name of the css class of the control.

 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 sets its cssClass. The MapView 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.cssClass = "view-style";

 See Also

Control Members
Control Class
MindFusion.Mapping Namespace