Hi,
How to check custom component propert value is empty?
<Circle ux:Class="LinkedCircle" Width="40" Height="40" Margin="2" Url="" Visibility="Visible">
<string ux:Property="Url" />
<JavaScript>
var Observable = require('FuseJS/Observable');
module.exports={
isEmpty: (!this.Url || this.Url.length==0) //here is check empty
};
</JavaScript>
<WhileTrue Value="{isEmpty}">
<Change this.Visibility="Collapsed" />
</WhileTrue>
<Clicked>
<LaunchUri Uri="{Property this.Url}" />
</Clicked>
<WhilePressed>
<Scale Factor="0.8" Duration=".15" Easing="CubicInOut" /> </WhilePressed>
</Circle>