Growth Mindset
Growth Mindset

Reputation: 1233

ExtJS XTemplate and empty JSON parsing

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.

Upvotes: 2

Views: 2626

Answers (1)

sdavids
sdavids

Reputation: 1537

<tpl if="!Ext.isEmpty(myObject)">

Upvotes: 3

Related Questions