1. #21
    Sencha User
    Join Date
    Dec 2011
    Posts
    10
    Vote Rating
    0
    and cop is on a distinguished road

      0  

    Default


    Ext.defer(Ext.create, 1, this, [cfg.xtype, cfg]);

    Hi, where should i insert the defer function to render properly a button in my sencha touch 2 template?
    I tried in the paint event but it is rendered the second time i access the template, in the initialize function the button is not shown i think becouse the dom is not already rendered i think.
    Thank you in advance

  2. #22
    Sencha User
    Join Date
    Jun 2011
    Location
    Canada
    Posts
    27
    Vote Rating
    0
    so.phis.ti.kat is on a distinguished road

      0  

    Default


    Has anyone been able to port @BrightSoul's code into 2.1? I can post things I have tried but all have failed.
    -- Marlon Valenzuela Web Developer www.marlonvalenzuela.net

  3. #23
    Sencha User
    Join Date
    Jan 2013
    Posts
    1
    Vote Rating
    0
    ArtBern is on a distinguished road

      0  

    Default


    Quote Originally Posted by abierbaum View Post
    The only issue I am running into is that it would be much more powerful if there was a way to get a scope into the template so I could add handlers that point at specific callbacks on other objects. Does anyone know a good way to get a scope into the template evaluation. (in particular when used with an Ext.List).
    I've managed to pass scope by using "parent" as param for addCmp and then obtaining reference via initConfig.scope = Ext.getCmp(parent.id)

Similar Threads

  1. DataView Template with button
    By tzander in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 10 Apr 2013, 11:23 AM
  2. button rendering problem with own template
    By bernd01 in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 3 Jun 2010, 1:37 PM
  3. Button sprite template
    By deanna in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 3 Mar 2010, 8:07 AM
  4. Is it possible to insert button into template?
    By atchijov in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 19 Jul 2009, 1:27 AM
  5. [FIXED][1.1] Little bug in Button Template ?
    By lioledingue in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 6 Oct 2008, 2:20 PM

Thread Participants: 14

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar