1. #1
    Ext User
    Join Date
    Aug 2010
    Posts
    48
    Vote Rating
    0
    PatrickS is on a distinguished road

      0  

    Default xtemplate not equals boolean

    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
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    !Available

    It's Javascript.

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

Thread Participants: 1