Search
ListItem.draw Method
See Also
 






Draws the item.

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

 Syntax

JavaScript  Copy Code

function draw ()

 Return Value

HTMLElement. The item DOM element.

 Example

The following code uses the draw method to get the HTML element that corresponds to the ListItem and changes its background.

JavaScript  Copy Code

var ui = MindFusion.Common.UI;

var listItem = new ui.ListItem();
var domElement = listItem.draw();
domElement.style.background = "pink";

 See Also