1.0.15 • Published 2 years ago

bind-ui v1.0.15

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

bind-ui

htm-tool bind-ui module

Install

npm install bind-ui

Usage

var bind_ui= require( "bind-ui" );

var myObj={
	config: {
		cssText: ".my-cls1{color:red;}",
		htmlText: "<span class='my-cls1' name='sp1'>aaaaa</span> "+
			"<label><input name='chk1' type=checkbox ></input>chk1</label> "+
			"<button name='btn'>toggle</button> ",
		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 );
1.0.15

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

3 years ago