Initializes a new instance of the Unit class.
Namespace: MindFusion.Common
File: Unit.js
JavaScript Copy Code |
---|
function Unit ([value, [type]]) |
Number. The value of the unit.
UnitType. The type of the unit.
The following code creates a new ListView and specifies its size in Unit.percentage.
JavaScript Copy Code |
---|
var ui = MindFusion.UI; var listView; document.addEventListener("DOMContentLoaded", function () .......................................... |