views:

57

answers:

1

How do you determine that a JSON object is empty in a XTemplate? I've tried

<tpl if="myObject != {}">
<tpl if="myObject">
<tpl if="myObject != undefined">

etc, but can't seem to find the right way to detect an empty object. Thanks.

+2  A: 
<tpl if="!Ext.isEmpty(myObject)">
sdavids
Perfect, thank you.
Ian