Gets a value representing whether this Unit instance has a set value.
Namespace: MindFusion.Common
File: Unit.js
JavaScript Copy Code |
---|
get isEmpty() {} |
Type: Boolean
Boolean. true if the Unit's value is null, otherwise false.
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); } |