2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 16:05:19 +00:00

FHEMWEB.pm: add optional placeholder to FW_textfieldv (Forum #132176)

git-svn-id: https://svn.fhem.de/fhem/trunk@27209 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2023-02-12 14:45:51 +00:00
parent b5bc241c11
commit 06bc6f2ad9
2 changed files with 7 additions and 6 deletions

View File

@ -48,7 +48,7 @@ sub FW_showRoom();
sub FW_style($$);
sub FW_submit($$@);
sub FW_textfield($$$);
sub FW_textfieldv($$$$);
sub FW_textfieldv($$$$;$);
sub FW_updateHashes();
sub FW_visibleDevices(;$);
sub FW_widgetOverride($$;$);
@ -2395,11 +2395,12 @@ FW_select($$$$$@)
##################
sub
FW_textfieldv($$$$)
FW_textfieldv($$$$;$)
{
my ($n, $z, $class, $value) = @_;
my ($n, $z, $class, $value, $place) = @_;
my $v;
$v=" value='$value'" if(defined($value));
$v.=" value='$value'" if(defined($value));
$v.=" placeholder='$place'" if(defined($place));
return if($FW_hiddenroom{input});
my $s = "<input type='text' name='$n' class='$class' size='$z'$v ".
"autocorrect='off' autocapitalize='off'/>";
@ -4799,7 +4800,7 @@ FW_log($$)
</ul>
Zweite Variante:<br>
<ul>
Perl regexp eingeschlossen in {}. Wenn der Code undef
Perl Ausdruck eingeschlossen in {}. Wenn der Code undef
zur&uuml;ckliefert, wird das Standard Icon verwendet; wird ein String
in <> zur&uuml;ck geliefert, wird dieser als HTML String interpretiert.
Andernfalls wird der String als devStateIcon gem&auml;&szlig; der

View File

@ -786,7 +786,7 @@ structure_Attr($@)
<a id="structure-attr-filterEvents"></a>
<li>filterEvents<br>
if set, and the device triggering the event has a struct_type map, the
if set, and the device triggering the event has a struct_type map, then
only events (i.e. reading names) contained in the structure map will
trigger the structure. Note: only the readingName and
readingName:oldVal:newVal entries of the struct_type map are considered.