How would i Implement a custom widget using this
http://harvesthq.github.io/chosen/? Or is there an easier way to use this?
I assume I can probably just pass the table rows and use something like
{{response.files.insert( ALL THE REQUIRED JS STUFF HERE )
{{=form.custom.begin}}
<select class="my_select_box" data-placeholder="Select Your Options">
{{for row in rows}}
<option value="{{row.id}}">{{row}}</option>
{{pass}}
</select>
{{=form.custom.end}}
<script>
#EXAMPLE FROM SITE
$(".my_select_box").chosen({
disable_search_threshold: 10,
no_results_text: "Oops, nothing found!",
width: "95%"
});
</script>
--
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.