Search
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

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