Search
ListItem.cssClass Property
See Also
 






Gets or sets the css class of this ListItem.

Namespace: MindFusion.Common.UI
File: ListItem.js

 Syntax

JavaScript  Copy Code

get cssClass() {}

 Property Value

String. The css class.

 Example

The following example uses the cssClass property to set the styling of a ListItem according to the id of a schedule item that is also part of the application.

JavaScript  Copy Code

listView = new ui.ListView(document.getElementById("listView"));
listView.width = listView.height = ui.Unit.percentage(100);

var item = new ui.ListItem();
item.title = "Armillaria Ponderosa";

var activity = calendar.schedule.resources.items()[0];
item.cssClass = "itemClass" + activity.id;

listView.items.add(item);

 See Also