Sorry I just got It. My recommendation is to use vue.js
here is an example
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div id="app">
<input v-model="a" type="checkbox">
<div v-if="a">
<input v-model="b" type="checkbox">
<div v-if="b">
<input v-model="c" type="checkbox">
<div v-if="c">
<input v-model="message">
<button v-on:click="shoot()">Shoot!</button>
</div>
</div>
</div>
<div>a: ${a}, b:${b}, c:${c}, message:${message}</div>
</div>
</body>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.4/vue.min.js"></script>
<script>
var app = new Vue({
el: '#app',
delimiters: ['${', '}'],
data: {
a: false,
b: false,
c: false,
message: 'Hello Vue!'
},
methods: {
shoot() { alert('shoot ' + app.message); }
}
});
</script>
</html>
You can use {{=ASSIGNJS(x=y)}} to pass a web2py variable y to a js variable
x.
On Thursday, 8 December 2016 11:38:08 UTC-6, Mark Billion wrote:
>
> Im really looking just for some suggestions of particularly light weight
> ones....
>
--
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/d/optout.