www/js/global.js

changeset 687
f5d05b420732
parent 686
372b2442a30f
child 697
685f20ad87ed
--- a/www/js/global.js	Thu Apr 18 17:17:22 2024 +0200
+++ b/www/js/global.js	Fri Apr 19 11:31:46 2024 +0200
@@ -43,7 +43,14 @@
  datatype: 'array',
  datafields: [{ name: 'id' }, { name: 'mno' }, { name: 'en' }]
 },
-DeviceDirectionAdapter = new $.jqx.dataAdapter(DeviceDirectionSource);
+DeviceDirectionAdapter = new $.jqx.dataAdapter(DeviceDirectionSource),
+
+// options for editors
+
+Show0dec = { inputMode: 'simple', theme: theme, width: 90, height: 23, readOnly: true, decimalDigits: 0 },
+Spin0dec = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, decimalDigits: 0, spinButtons: true },
+  SubInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 63, decimalDigits: 0, spinButtons: true },
+ GPIOInt = { inputMode: 'simple', theme: theme, width: 110, height: 23, min: -1, max:31, decimalDigits: 0, spinButtons: true };
 
 
 /* Websocket interface. Place "websocket.onmessage = function(evt) {}" in the user script. */

mercurial