1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    gregory.cat is on a distinguished road

      0  

    Default Add handler to a ExtJs button

    Add handler to a ExtJs button


    Hello,

    I'm a new user in ExtJs Designer and I'm discovering the software.
    I have a question about button in ExtJs Designer, I'm trying to put a button and to add a handler to this button but I don't find where I can do that.
    So I would like to know if it's possible to add an handler to a button in ExtJs designer ?

    Thank you for your help.

  2. #2
    Ext User RKoopmans's Avatar
    Join Date
    Mar 2010
    Location
    Hoogersmilde, Netherlands
    Posts
    21
    Vote Rating
    0
    RKoopmans is on a distinguished road

      0  

    Default


    Hmm, I've been looking for the same, and couldn't find it either.
    I edited the MyViewport.ui.js file. I know you're not supposed to, but to make it work with ASP/AJAX postbacks and make it working with ContentEl's I had to :-).
    Happy Programming! ,
    Ronald Koopmans

  3. #3
    Ext User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    gregory.cat is on a distinguished road

      0  

    Default


    So I have to edit myself the JS file to add the handler to my button ?
    I hope there will be an update about handler in the new version.

    Thanks

  4. #4
    Ext User RKoopmans's Avatar
    Join Date
    Mar 2010
    Location
    Hoogersmilde, Netherlands
    Posts
    21
    Vote Rating
    0
    RKoopmans is on a distinguished road

      0  

    Default


    I'm not sure, but i couldn't find it..
    for none of the components to be honest..
    i just got in the *.ui.js file and added a handler for my button like this:
    handler: function() {
    var myWindow = new MyWindow({
    renderTo: Ext.getBody()
    });
    myWindow.setTitle(
    'Help');
    myWindow.show();

    But maybe there is a way! I just don't know :-)
    Happy Programming! ,
    Ronald Koopmans

  5. #5
    Ext User
    Join Date
    Mar 2010
    Posts
    3
    Vote Rating
    0
    gregory.cat is on a distinguished road

      0  

    Default


    Ok I know what you mean.
    But I will have a problem when I will open and save my project with ExtJs Designer after editing the *.ui.js file. ExtJs Designer will override the *.ui.js file and delete my handler.

  6. #6
    Ext User RKoopmans's Avatar
    Join Date
    Mar 2010
    Location
    Hoogersmilde, Netherlands
    Posts
    21
    Vote Rating
    0
    RKoopmans is on a distinguished road

      0  

    Default


    Yep, It will. That's why I try to make as little edits as possible.
    But i think my design is now complete, so I can work with it now!
    Maybe there is something about this topic in the help or Request sections?
    Happy Programming! ,
    Ronald Koopmans

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."