mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-03 19:49:02 +00:00
devStateStyle added
git-svn-id: https://svn.fhem.de/fhem/trunk@3257 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5fa4341368
commit
fa952bc029
@ -123,7 +123,7 @@ FHEMWEB_Initialize($)
|
|||||||
|
|
||||||
###############
|
###############
|
||||||
# Initialize internal structures
|
# Initialize internal structures
|
||||||
map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby");
|
map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby", "devStateStyle");
|
||||||
InternalTimer(time()+60, "FW_closeOldClients", 0, 0);
|
InternalTimer(time()+60, "FW_closeOldClients", 0, 0);
|
||||||
|
|
||||||
$FW_dir = "$attr{global}{modpath}/www";
|
$FW_dir = "$attr{global}{modpath}/www";
|
||||||
@ -2391,7 +2391,8 @@ FW_devState($$)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$txt = "<div id=\"$d\" class=\"col2\">$txt</div>";
|
my $style = AttrVal($d, "devStateStyle", "");
|
||||||
|
$txt = "<div id=\"$d\" $style class=\"col2\">$txt</div>";
|
||||||
|
|
||||||
if($hasOnOff) {
|
if($hasOnOff) {
|
||||||
# Have to cover: "on:An off:Aus", "A0:Aus AI:An Aus:off An:on"
|
# Have to cover: "on:An off:Aus", "A0:Aus AI:An Aus:off An:on"
|
||||||
@ -2945,6 +2946,15 @@ FW_dropdownFn()
|
|||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<a name="devStateStyle"></a>
|
||||||
|
<li>devStateStyle<br>
|
||||||
|
Specify an HTML style for the given device, e.g.:<br>
|
||||||
|
<ul>
|
||||||
|
attr sensor devStateStyle style="text-align:left;;font-weight:bold;;"<br>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<br>
|
||||||
|
|
||||||
<a name="webCmd"></a>
|
<a name="webCmd"></a>
|
||||||
<li>webCmd<br>
|
<li>webCmd<br>
|
||||||
Colon separated list of commands to be shown in the room overview for a
|
Colon separated list of commands to be shown in the room overview for a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user