mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
98_DOIF.pm: new ui_Table function widget, PUP with arguments for icon text and icon class
git-svn-id: https://svn.fhem.de/fhem/trunk@23858 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
43217046d0
commit
e951a337e6
@ -728,13 +728,13 @@ sub DOIF_RegisterEvalAll
|
||||
sub DOIF_tablePopUp {
|
||||
my ($pn,$d,$icon,$table) = @_;
|
||||
$table = $table ? $table : "uiTable";
|
||||
my ($ic,$itext,$iclass)=split(",",$icon);
|
||||
if ($defs{$d} && AttrVal($d,$table,"")) {
|
||||
my $ret = "<a href=\"#\" onclick=\"doifTablePopUp('$defs{$d}','$d','$pn','$table')\">".FW_makeImage($icon)."</a>";
|
||||
my $ret = "<a href=\"#\" onclick=\"doifTablePopUp('$defs{$d}','$d','$pn','$table')\">".FW_makeImage($ic,$itext,$iclass)."</a>";
|
||||
} else {
|
||||
return "no device $d or attribut $table";
|
||||
}
|
||||
}
|
||||
|
||||
sub DOIF_summaryFn ($$$$) {
|
||||
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
||||
my $hash = $defs{$d};
|
||||
@ -4151,6 +4151,13 @@ sub FW_makeImage {
|
||||
|
||||
|
||||
# Widgets
|
||||
|
||||
|
||||
sub widget {
|
||||
my ($value,$widget,$set)=@_;
|
||||
$set="" if (!defined $set);
|
||||
return ($value,"",$widget,$set)
|
||||
}
|
||||
|
||||
sub temp_knob {
|
||||
my ($value,$color,$set)=@_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user