[web2py] How to clear a list in a view with jquery

2020-06-06 Thread mostwanted
Guys is it possible to clear a list in a view using jquery?
Something like this:

*CODE EXAMPLE:*
{{if details:}}
{{for details in details:}}

{{=details.first_name}}
{{=details.last_name}}
{{pass}}









*$(function(){$('#close').click(function(e){{{details.clear()}};});});*

How can I achieve this because?

Regards;

Mostwanted

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/9831eef9-75ec-4c58-b86b-92f97d59e510o%40googlegroups.com.


[web2py] Re: Bootstrap 4 and MENU helper problem

2020-06-06 Thread Val K
Hi, Annet!
1. You can write your own MENU helper based on gluon.html.MENU - it's easy
2. about reorder classes  - its because web2py uses unordered set in 
add_class/remove_class - it could be fixed - open an issue, please

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/58b704af-3899-4360-a7aa-1996bd6f5dc2o%40googlegroups.com.