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






Gets a value representing whether this Unit instance has a set value.

Namespace: MindFusion.Common
File: Unit.js

 Syntax

JavaScript  Copy Code

get isEmpty() {}

 Property Value

Type: Boolean
Boolean. true if the Unit's value is null, otherwise false.

 Example

The following code checks if the minWidth of a Window is empty.

JavaScript  Copy Code
if(window.minWidth.isEmpty)
{
    window.minWidth = ui.Unit.pixel(100);
}

 See Also

Unit Members
Unit Class
MindFusion.Common Namespace