JsViews Demos
Data-link with two-way binding and converters
Using convert and 'convert back' functions with integer-to-string conversion:
— Binding to form elements, but keeping the 'amount' data as type 'number'
Choose amount:
Choose amount:
0
1
2
3
4
5
6
7
Choose amount:
0
1
2
3
4
5
6
7
Convert and 'convert back' functions using bit-masks on the integer data value:
Choose amount:
bit 0
bit 1
bit 2
Amount: