nv-facutil-plain-select

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nv-facutil-plain-select

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.26 kB

Total Files

3

Last publish

Collaborators

  • ihgazni2