Results 1 to 4 of 4

Thread: Ext Template if condition not working

  1. #1

    Default Ext Template if condition not working

    Code:
     tpl : new Ext.Template(
              			'<tpl if="{isCommentable} == true">{qnNum}</tpl>'
      				                ),
    The above code is not working. isCommentable is from Ext.data.Record is a boolean value.

    Do you know why the if condition in template is working



  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    549

    Default

    Try:
    Code:
    '<tpl if="isCommentable">{qnNum}</tpl>'

  3. #3

    Default

    Thanks willigogs , unfortunately it is not working .. Is there any other way ?

  4. #4

    Default

    WORKING...


    I changed to

    Ext.XTemplate from Ext.Template

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •