1. #11
    Sencha User
    Join Date
    May 2011
    Location
    Manchester, United Kingdom
    Posts
    19
    Vote Rating
    0
    kreeve_ctisn is on a distinguished road

      0  

    Default


    Worked on a new version that now works within an mvc style app without breaking existing workings.

    Have updated my github with the new code.
    Basically when the 1st render is called it attaches events to the gridview for each button and 1 all encompassing "actionbuttonclick" event

    for actionbuttonclick you have the following
    Code:
    actionbuttonclick: function(button, gridview, rowindex, colindex)
    if the button definition passed through has an eventName property or a cls property set it will use these to create the events required
    eg 1) button has eventName, this eventname will be triggered
    Code:
    {
        text: 'Load',
        eventName:'loadrecord'
    }
    this will set up loadrecord event on the gridview.
    Code:
    loadrecord: function(gridview, rowindex, colindex)
    similarly the cls property will be used to interpret to an event with all non alpha chars will be removed and suffixed with "click"
    eg
    Code:
    {
        text: 'Load',
        cls:'btn-load-record'
    }
    wlll create the event btnloadrecordclick as follows
    Code:
    btnloadrecordclick: function(gridview, rowindex, colindex)
    Finally, I added in the showIndex. This is exactly the same as hideIndex but in reverse, eg a truthy value to showIndex will show the button and a falsey value will cause it to hide.

    GitHub Link: https://github.com/BinaryKitten/Ext....onButtonColumn
    Last edited by kreeve_ctisn; 1 Aug 2011 at 3:39 AM. Reason: GitHub updated with Additonal DocBlock comments and fix for event Creation when buttons had a handler.

  2. #12
    Sencha User
    Join Date
    Feb 2011
    Posts
    63
    Vote Rating
    0
    joelchu is on a distinguished road

      0  

    Default great plugin but ...

    great plugin but ...


    HI

    Thanks for this great plug in

    Only one little problem I have. The height of the button is about 2 pixel higher than my grid cell and it push everything upward a little bit. And when the grid refresh the whole grid is jumping until everything settle.

    Tried to overwrite the .x-btn-x-action-col-button css but seems to be no effect.

    Any pointer how to change the size of the button is highly appreciated. Thanks.

  3. #13
    Sencha User
    Join Date
    Jan 2012
    Posts
    1
    Vote Rating
    0
    seeen is on a distinguished road

      0  

    Default


    Hi joelchu,

    just had the same problem with the height of the buttons. But editing the css class worked for me.

    I simply added into my custom.css file:

    Code:
    .x-action-col-button {
        padding:0px 0px 0px 0px;
    }
    Now the buttons fit perfectly into my cells.

    Many thanks to the authors of this nice contribution! :-)

  4. #14
    Sencha User MikeB's Avatar
    Join Date
    Feb 2008
    Location
    Northern Md
    Posts
    91
    Vote Rating
    0
    MikeB is on a distinguished road

      0  

    Default Great extension, but, a question...

    Great extension, but, a question...


    How can I add the current scope of the application so that when I'm in the handler I can access any functions/variables I've established previously?

    Thanks
    MikeB

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