Results 1 to 2 of 2

Thread: xtemplate not equals boolean

  1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    48
    Vote Rating
    0
      0  

    Default xtemplate not equals boolean

    Hi,
    I have
    '<tpl if="Available">',
    '<div style="background-color: #3CB371">',
    '</tpl>',

    This works, but xtemplates do not support else statements. When it is not available, I need to assign an other color. In what way can I say "if not available"?

    Patrick

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Redwood City
    Posts
    30,644
    Vote Rating
    62
      0  

    Default

    !Available

    It's Javascript.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

Similar Threads

  1. Is there any api that equals to the window.setTimeout
    By joshokn in forum Community Discussion
    Replies: 2
    Last Post: 6 Jul 2012, 12:54 AM
  2. treegrid + auto load equals false
    By fother in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 25 Aug 2009, 8:16 AM
  3. [GXT 2.0.1]: BeanModelMarker and equals() method from entity
    By stogi in forum Ext GWT: Discussion
    Replies: 9
    Last Post: 7 Aug 2009, 1:12 AM
  4. BeanModel now delegate equals and hashCode ?
    By richard.hallier in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 3 Sep 2008, 9:30 PM

Posting Permissions

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