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:
Damian
2021-02-28 19:17:50 +00:00
parent be66e6d4a1
commit bfc8ca179e

View File

@@ -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)=@_;