Search
Control.theme Property
See Also
 






Gets or sets the current theme of the control.

Namespace: MindFusion.Common
File: Control.js

 Syntax

JavaScript  Copy Code

get theme() {}

 Property Value

String. The current theme.

 Example

The following code assigns the "gray" theme to a ListView:

JavaScript  Copy Code

var ui = MindFusion.UI;

var listView;
var host;
var theme = "gray";

document.addEventListener("DOMContentLoaded", function ()
{
listView = new ui.ListView(document.getElementById("listView"));
listView.width = listView.height = ui.Unit.percentage(100);
listView.theme = theme;
listView.itemSize = ui.Unit.pixel(100);
listView.itemDoubleClick.addEventListener(handleItemDoubleClick);

..........................................
..........................................
}

 See Also