MindFusion.Charting for JavaScript Programmer's Guide
UnitType Enumeration
See Also
 






Specifies a unit of measurement.

Namespace: MindFusion.Common
File: Unit.js

 Syntax

JavaScript  Copy Code

// enum
UnitType = {}

 Members

  Member name Description

Percent

The measurement is a percentage relative to the parent element.

Pixel

The measurement is in pixels.

 Example

The following code checks the type of the minWidth of a Window.

JavaScript  Copy Code
if(window.minWidth.type === ui.UnitType.Percent )
{
    window.minWidth = ui.Unit.percent(50);
}

 See Also

MindFusion.Common Namespace