mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
fhemweb.js: add textFieldNL widget type (Forum #53393)
git-svn-id: https://svn.fhem.de/fhem/trunk@11462 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
882719cfa9
commit
2f531cf375
@ -3505,6 +3505,8 @@ FW_widgetOverride($$)
|
||||
<li>if the modifier is ":time", then a javascript driven timepicker is
|
||||
displayed.</li>
|
||||
<li>if the modifier is ":textField", an input field is displayed.</li>
|
||||
<li>if the modifier is ":textFieldNL", an input field without label
|
||||
is displayed.</li>
|
||||
<li>if the modifier is ":textField-long", is like textField, but upon
|
||||
clicking on the input field a textArea (60x25) will be opened.</li>
|
||||
|
||||
|
@ -791,14 +791,16 @@ function
|
||||
FW_createTextField(elName, devName, vArr, currVal, set, params, cmd)
|
||||
{
|
||||
if(vArr.length != 1 ||
|
||||
(vArr[0] != "textField" && vArr[0] != "textField-long") ||
|
||||
(vArr[0] != "textField" &&
|
||||
vArr[0] != "textFieldNL" &&
|
||||
vArr[0] != "textField-long") ||
|
||||
(params && params.length))
|
||||
return undefined;
|
||||
|
||||
var is_long = (vArr[0] == "textField-long");
|
||||
|
||||
var newEl = $("<div style='display:inline-block'>").get(0);
|
||||
if(set && set != "state")
|
||||
if(set && set != "state" && vArr[0] != "textFieldNL")
|
||||
$(newEl).append(set+":");
|
||||
$(newEl).append('<input type="text" size="30">');
|
||||
var inp = $(newEl).find("input").get(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user