MindFusion.Charting for JavaScript Programmer's Guide
Unit.type Property
See Also
 






The unit type.

Namespace: MindFusion.Common
File: Unit.js

 Syntax

JavaScript  Copy Code

get type() {}

 Property Value

One of the UnitType enumeration values.

 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

Unit Members
Unit Class
MindFusion.Common Namespace