[web2py] Re: add new button in GRID with same look and feel

2013-11-15 Thread Sarbjit
Thanks !! On Friday, November 15, 2013 2:20:44 PM UTC+5:30, Mirko wrote: > > Just figured out how to do that : > > links=[ > {'header':'...','body':lambda row: ...}, > lambda row: TAG.button(T('Accept'),_type="button",_onclick= > 'alert("%s")'%row.id) > ] > > the second item of links

[web2py] Re: add new button in GRID with same look and feel

2013-11-15 Thread Mirko
Just figured out how to do that : links=[ {'header':'...','body':lambda row: ...}, lambda row: TAG.button(T('Accept'),_type="button",_onclick='alert("%s")' %row.id) ] the second item of links list goes with the delete/view/edit buttons... Hope it helps, Mirko On Friday, November 15

[web2py] Re: add new button in GRID with same look and feel

2013-11-15 Thread Sarbjit
Hi Mirko, I am not able to figure out a way so far :( But I feel the best way is to create a new header and add existing buttons (Add/Delete/View) in them along with other buttons. But I still need to figure out how this can be done i.e. passing the correct arguments (signature) etc. -Sarbjit

[web2py] Re: add new button in GRID with same look and feel

2013-11-15 Thread Mirko
Hi Sarbjit, did you manage to have the placement of your button under the same header where the default grid buttons are ? I'm also unsuccessful here... Thanks! Mirko On Sunday, November 3, 2013 4:45:55 AM UTC+1, Sarbjit wrote: > > I have added a new button in grid using links as below :- > >

[web2py] Re: add new button in GRID with same look and feel

2013-11-04 Thread Sarbjit
I was wondering if I could add the grid default buttons ('View','Edit','Delete') inside the links and turn off the default buttons visibility. This way the new button and other buttons would be of same style. Only problem is that the default buttons used to pass "signature" and other arguments,

[web2py] Re: add new button in GRID with same look and feel

2013-11-04 Thread Sarbjit
> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group.