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
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
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
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 :-
>
>
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,
>
>
>
--
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.
6 matches
Mail list logo