May be looking at the wrong method.
I should check again.
Thanks
8.06.2020 23:42 tarihinde Alex Harui yazdı:
You might see null for data during initialization but eventually you
should see non-null.
*From: *serkan <[email protected]>
*Date: *Monday, June 8, 2020 at 1:28 PM
*To: *"[email protected]" <[email protected]>, Alex Harui
<[email protected]>
*Subject: *Re: image component visibility evaluation
I tried set methods of the components but surprisingly data is always
is null but still the logic works.
8.06.2020 19:09 tarihinde Alex Harui yazdı:
They are evaluated by PropertyWatchers, but it is tricky to setup
breakpoints for them and probably not necessary. The first step
is to get rid of the warnings as you asked on another thread.
Once the warnings are gone, the PropertyWatchers will likely be
doing the right thing. Then make sure the values are being set
properly in the renderer itself by setting breakpoints in the
renderer and other data objects in the expression. Setters
transpile to set__foo methods.
HTH,
-Alex
*From: *serkan <[email protected]>
<mailto:[email protected]>
*Reply-To: *"[email protected]"
<mailto:[email protected]> <[email protected]>
<mailto:[email protected]>
*Date: *Monday, June 8, 2020 at 8:11 AM
*To: *"[email protected]" <mailto:[email protected]>
<[email protected]> <mailto:[email protected]>
*Subject: *image component visibility evaluation
Hi,
I have an image component as below:
<s:Image id="startJob" source="images/startJob.jpg"
toolTip="{resourceManager.getString('messages',
'startJobTooltip')}" width="23" height="23"
includeInLayout="{data.visualParams.commandabilityParams.isStartable
== true}" buttonMode="true"
visible="{data.visualParams.commandabilityParams.isStartable ==
true}"
click="executeJobCommand(event, data.@Id, data.@Id)" />
For he issue #819 it looks like it is working but not the same for
the real app. I need to debug an inspect the value of
"data.visualParams.commandabilityParams.isStartable" for the image
component
to check the value of
"visible="{data.visualParams.commandabilityParams.isStartable ==
true}"
Where are the values evaluated ofr a component ?
Thanks,
Serkan