1.0.0 • Published 2 years ago
nv-facutil-plain-select v1.0.0
nv-facutil-plain-select
- 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
install
- npm install nv-facutil-plain-select
usage
const {from_dict,from_ary} = require("nv-facutil-plain-select")
example
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 }
>
METHODS
px.val
px.slct_all
px.unslct_all
px.slct_<opt-key>
px.unslct_<opt-key>
LICENSE
- ISC
1.0.0
2 years ago