Also, note that specifically for "data-" attributes, you can now do:
A(..., data=dict(toggle='dropdown'))
Anthony
On Friday, October 25, 2013 1:08:47 PM UTC-4, Anthony wrote:
>
> You forgot the leading underscore -- should be:
>
> **{'_data-toggle': 'dropdown'}
>
> Anthony
>
> On Friday, October 25, 2013 1:00:20 PM UTC-4, Richard wrote:
>>
>> Hello,
>>
>> Is this possible in later version of w2p :
>>
>> DIV(A(I(_class='icon-download'), CAT(' '), T('Save relative oganization
>> chart as...'), SPAN(_class='caret'),
>> _class='btn dropdown-toggle', _href='#', ***{'data-toggle':
>> 'dropdown'}*),
>> UL(LI(A('png', _href=URL('directory', 'return_chart',
>> args=request.args(0), vars=dict(file_format='png')))),
>> LI(A('svg', _href=URL('directory', 'return_chart',
>> args=request.args(0), vars=dict(file_format='svg')))),
>> LI(A('pdf', _href=URL('directory', 'return_chart',
>> args=request.args(0), vars=dict(file_format='pdf')))),
>> LI(A('ps', _href=URL('directory', 'return_chart',
>> args=request.args(0), vars=dict(file_format='ps')))),
>> LI(A('dot', _href=URL('directory', 'return_chart',
>> args=request.args(0), vars=dict(file_format='dot')))),
>> _class='dropdown-menu'), _class='btn-group')
>>
>> ?
>>
>> Thanks
>>
>> Richard
>>
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.