-
nv-facutil-plain-select is a simple-util for select
-
not support nest, suitable for small fixed-dict
-
its a very-easy version of the following pkgs
-
easy: nv-facutil-sradio nv-facutil-schkbox
-
normal: nv-facutil-simple-slct nv-facutil-slject
-
full: nv-data-selection support nest
- npm install nv-facutil-plain-select
const {from_dict,from_ary} = require("nv-facutil-plain-select")
var opts = {a:100,b:200,c:300}
var px = from_dict(opts)
px.slct_a px.slct_all px.slct_b px.slct_c
px.unslct_a px.unslct_all px.unslct_b px.unslct_c
px.val
> px.slct_a()
{ a: 100 }
>
> px.slct_b()
{ a: 100, b: 200 }
>
> px.slct_c()
{ a: 100, b: 200, c: 300 }
>
> px.unslct_b()
{ a: 100, c: 300 }
>
px.val
px.slct_all
px.unslct_all
px.slct_<opt-key>
px.unslct_<opt-key>
- ISC