There is no problem with bootstrap - you can write your own widgets using 
its classes, 
but if you customize/override  web2py.js/web2py-bootsrup3.js/widgtes.py 
 you have a chance to get a pain with updating web2py (bootstrap is updated 
much rarely)

optimal solution (I think) 
-  write your own widget  python-part  and place it in the module (in 
your_app/modules  or   web2py/site-packages  - to have access from all 
 apps)
-  write your own  js-part ( separate file in static/js )

to avid js-conflicts don't use web2py CSS-classes/attrs/data-  (like w2p_*) 
  - change it to yours  and  wrap  all your js-fun in  JQuery plugin (like 
 $.your_plugin = { all your js-code })


On Wednesday, March 16, 2016 at 1:14:10 AM UTC+3, Pierre wrote:
>
> If I want to define another class like
>
> class MyListWidget(StringWidget):
>
>
> what's the location to put this code ?
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to