I used:
for x in grid.elements('td.row_buttons'):
x.insert(4, A(
[SPAN(_class="menu-icon fa fa-paper-plane"), SPAN("Go To",
_class="buttontext button", _title="GoTo")]
, _href="TEST", _class="button btn btn-default btn-secondary"))
This is specific to my needs, you may not want those span and class
attributes. It creates a Go To button after view, edit, and delete if its
turned on.
On Thursday, 27 June 2013 02:42:26 UTC+8, Jim S wrote:
>
> Where in the smartgrid do you need to add it? Can you just have a custom
> view? Maybe post some code or pics to show what you're trying to
> accomplish.
>
> -Jim
>
>
> On Wednesday, June 26, 2013 10:51:02 AM UTC-5, Tom Russell wrote:
>>
>> I need to add a button to the smartgrid but not like doing create=True
>> because I have a form factory that has 2 other tables associated with the
>> one. I know in html I can simply add a line for a button but since I am not
>> using html for this how would I add a button to that page to reference my
>> own view?
>>
>> Thanks.
>>
>
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/b2f16592-a375-41d9-9dfd-7a549b25a628%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.