diff --git a/www/pgm2/fhemweb.js b/www/pgm2/fhemweb.js index eb8d7a3fc..6e8694537 100644 --- a/www/pgm2/fhemweb.js +++ b/www/pgm2/fhemweb.js @@ -1076,7 +1076,7 @@ FW_replaceWidget(oldEl,devName,vArr,currVal,reading,set,params,cmd,readyFn) elName = $(oldEl).find("[name]").attr("name"); if(vArr.length == 0) { // No parameters, input field - newEl = FW_createTextField(elName, devName, ["textField"], currVal, + var newEl = FW_createTextField(elName, devName, ["textField"], currVal, set, params, cmd); finishFn("textField", newEl); @@ -1716,3 +1716,42 @@ FW_getSVG(emb) } return undefined; } + +/* +=pod + +=begin html +
  • :noArg - show no input field.
  • +
  • :time - show a JavaScript driven timepicker.
  • +
  • :textField - show an input field.
  • +
  • :textFieldNL - show the input field and hide the label.
  • +
  • :textField-long - show an input-field, but upon + clicking on the input field open a textArea (60x25).
  • +
  • :textFieldNL-long - the behaviour is the same + as :textField-long, but no label is displayed.
  • +
  • :slider,<min>,<step>,<max>[,1] - show + a JavaScript driven slider. The optional ,1 at the end + avoids the rounding of floating-point numbers.
  • +
  • :multiple,val1,val2,..." - present a multiple-value-selector with an + additional textfield. The result is comman separated.
  • +
  • :multiple-strict,val1,val2,... - like :multiple, but without the + textfield.
  • +=end html + +=begin html_DE +
  • :noArg - es wird kein weiteres Eingabefeld angezeigt.
  • +
  • :time - zeigt ein Zeitauswahlmenü.
  • +
  • :textField - zeigt ein Eingabefeld.
  • +
  • :textField-long - ist wie textField, aber beim Click im Eingabefeld wird + ein Dialog mit einer HTML textarea (60x25) wird geöffnet.
  • +
  • :slider,<min>,<step>,<max>[,1] - zeigt einen + Schieberegler. Das optionale 1 (isFloat) vermeidet eine Rundung der + Fliesskommazahlen.
  • +
  • :multiple,val1,val2,... - zeigt eine Mehrfachauswahl mit einem + zusätzlichen Eingabefeld. Das Ergebnis ist Komma separiert.
  • +
  • :multiple-strict,val1,val2,... - ist wie :multiple, bloß ohne + Eingabefeld.
  • +=end html_DE + +=cut +*/