npm install bind-ui
npm install bind-ui
`Usage
`javascript
var bind_ui= require( "bind-ui" );var myObj={
config: {
cssText: ".my-cls1{color:red;}",
htmlText: "aaaaa "+
" "+
" ",
bindArray:[
"sp1",["class","my-cls1","txtRed",2],
"chk1",["prop","checked","txtRed",2],
"btn",["evt","click","toggleRed"],
],
},
txtRed: true,
toggleRed: function(){ this.txtRed=!this.txtRed; },
}
bind_ui( "div1", myObj );
``