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