mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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
|
||||
map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby");
|
||||
map { addToAttrList($_) } ( "webCmd", "icon", "devStateIcon", "sortby", "devStateStyle");
|
||||
InternalTimer(time()+60, "FW_closeOldClients", 0, 0);
|
||||
|
||||
$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) {
|
||||
# Have to cover: "on:An off:Aus", "A0:Aus AI:An Aus:off An:on"
|
||||
@ -2945,6 +2946,15 @@ FW_dropdownFn()
|
||||
</li>
|
||||
<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>
|
||||
<li>webCmd<br>
|
||||
Colon separated list of commands to be shown in the room overview for a
|
||||
|
Loading…
Reference in New Issue
Block a user