want to disable a button using and(expression1, expression2)

Hi Team, 

I have some data in array like Data=[[taskid=1,taskdone=true,comments="ABCD"],[taskid=2,taskdone=false,comments="XYZ"]]

Now I want to disable dynamically like, if in the array all indexes have taskdone=true, then only button will be enabled else it would b disabled. 

disabled: and( something which check check if both all the indexes of array have taskdone value as false then only and() returns single true

Note: array size will be dynamic, sometimes it can be 3,4,5 acc. to interface so we need to setup disabled as per that.

Please help

Thanks

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data