same thing that you previously did for data attributes (before web2py 
handled them natively)....
use BUTTON(...., **{'_aria-hidden' : 'true'})

On Thursday, May 16, 2013 10:22:47 PM UTC+2, Annet wrote:
>
> In a function I use the following code to add Bootstrap's close button
> for a modal window to a form:
>
> form.element('input[type=submit]',
> replace=lambda button: CAT(button, 
> INPUT(_id="close",_class="btn",_type="button",_value="Sluit")))
> form.element('input[id=close]').update(data={'dismiss':'modal'})
>
> I tried adding _aria-hidden="true" but that result in failed to compile 
> because: keyword can't be an
> expression.
>
> I tested the form without aria-hidden="true" and it dismisses the modal 
> window any way. What
> do I need the aria-hidden="true" for?
>
>
> Kind regards,
>
> Annet.
>
>
> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
>
>
>

-- 

--- 
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.


Reply via email to