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:
parent
b5bc241c11
commit
06bc6f2ad9
@ -48,7 +48,7 @@ sub FW_showRoom();
|
|||||||
sub FW_style($$);
|
sub FW_style($$);
|
||||||
sub FW_submit($$@);
|
sub FW_submit($$@);
|
||||||
sub FW_textfield($$$);
|
sub FW_textfield($$$);
|
||||||
sub FW_textfieldv($$$$);
|
sub FW_textfieldv($$$$;$);
|
||||||
sub FW_updateHashes();
|
sub FW_updateHashes();
|
||||||
sub FW_visibleDevices(;$);
|
sub FW_visibleDevices(;$);
|
||||||
sub FW_widgetOverride($$;$);
|
sub FW_widgetOverride($$;$);
|
||||||
@ -2395,11 +2395,12 @@ FW_select($$$$$@)
|
|||||||
|
|
||||||
##################
|
##################
|
||||||
sub
|
sub
|
||||||
FW_textfieldv($$$$)
|
FW_textfieldv($$$$;$)
|
||||||
{
|
{
|
||||||
my ($n, $z, $class, $value) = @_;
|
my ($n, $z, $class, $value, $place) = @_;
|
||||||
my $v;
|
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});
|
return if($FW_hiddenroom{input});
|
||||||
my $s = "<input type='text' name='$n' class='$class' size='$z'$v ".
|
my $s = "<input type='text' name='$n' class='$class' size='$z'$v ".
|
||||||
"autocorrect='off' autocapitalize='off'/>";
|
"autocorrect='off' autocapitalize='off'/>";
|
||||||
@ -4799,7 +4800,7 @@ FW_log($$)
|
|||||||
</ul>
|
</ul>
|
||||||
Zweite Variante:<br>
|
Zweite Variante:<br>
|
||||||
<ul>
|
<ul>
|
||||||
Perl regexp eingeschlossen in {}. Wenn der Code undef
|
Perl Ausdruck eingeschlossen in {}. Wenn der Code undef
|
||||||
zurückliefert, wird das Standard Icon verwendet; wird ein String
|
zurückliefert, wird das Standard Icon verwendet; wird ein String
|
||||||
in <> zurück geliefert, wird dieser als HTML String interpretiert.
|
in <> zurück geliefert, wird dieser als HTML String interpretiert.
|
||||||
Andernfalls wird der String als devStateIcon gemäß der
|
Andernfalls wird der String als devStateIcon gemäß der
|
||||||
|
@ -786,7 +786,7 @@ structure_Attr($@)
|
|||||||
|
|
||||||
<a id="structure-attr-filterEvents"></a>
|
<a id="structure-attr-filterEvents"></a>
|
||||||
<li>filterEvents<br>
|
<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
|
only events (i.e. reading names) contained in the structure map will
|
||||||
trigger the structure. Note: only the readingName and
|
trigger the structure. Note: only the readingName and
|
||||||
readingName:oldVal:newVal entries of the struct_type map are considered.
|
readingName:oldVal:newVal entries of the struct_type map are considered.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user