Skip to content

Commit

Permalink
additional settings for html dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Standarduser committed Jan 4, 2025
1 parent c062e14 commit 4a1821e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
11 changes: 8 additions & 3 deletions widgets/vis-homekittiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@
data-vis-attrs1="group.labelGroup2;label3pre;label3oid/id;label3unit;label3post;label3decimals[1];label3factor[1];label3comma[true]/checkbox;label3tdp/checkbox;label4pre;label4oid/id;label4unit;label4post;label4decimals[1];label4factor[1];label4comma[true]/checkbox;label4tdp/checkbox;label5pre;label5oid/id;label5unit;label5post;label5decimals[1];label5factor[1];label5comma[true]/checkbox;label5tdp/checkbox;"
data-vis-attrs2="group.increment;oidIncrement/id;incrementPlusShow/checkbox;incrementMinusShow/checkbox;incrementPlusValue[1];incrementMinusValue[-1];incrementValueMax[100];incrementValueMin[0];incrementShowOnlyIfTrue/checkbox;"
data-vis-attrs3="group.blockOperation;blockOperationIfTrue/checkbox;blockOperationIfFalse/checkbox;blockOperationShowDisabled/checkbox;blockOperationShowIcon/checkbox/addBlockOperationShowHideInputfields();blockOperationIcon/image;blockOperationIconNotInEditor/checkbox;blockOperationUseDifferentOID/checkbox/addBlockOperationShowHideInputfields();oidBlockOperation/id;"
data-vis-attrs4="group.dialog;contains_view/views;title;autoclose/slider,0,30000,100;modal[true]/checkbox;dialog_width;dialog_height;dialog_top;dialog_left;overflowX/nselect,,visible,hidden,scroll,auto,initial,inherit;overflowY/nselect,,visible,hidden,scroll,auto,initial,inherit;arrowDirection/nselect,,top,right,bottom,left;setIdOnOpenClose/id;setValueOnOpen;setValueOnClose;"
data-vis-attrs4="group.dialog;title;contains_view/views;autoclose/slider,0,30000,100;modal[true]/checkbox;dialog_width;dialog_height;dialog_top;dialog_left;overflowX/nselect,,visible,hidden,scroll,auto,initial,inherit;overflowY/nselect,,visible,hidden,scroll,auto,initial,inherit;arrowDirection/nselect,,top,right,bottom,left;setIdOnOpenClose/id;setValueOnOpen;setValueOnClose;"
data-vis-attrs5="group.signalpics;numberOfSignals[1]/slider,3,10,1;signalsNotInEditor/checkbox;"
data-vis-attrs6="group.signals/byindex;oidSignal(1-numberOfSignals)/id;signalComparison(1-numberOfSignals)/select,comparisonEqual,comparisonNotEqual,comparisonLowerEqual,comparisonGreaterEqual,comparisonLower,comparisonGreater;signalCompValue(1-numberOfSignals);signalIcon(1-numberOfSignals)/image;signalDescription(1-numberOfSignals);"
>
Expand Down Expand Up @@ -502,8 +502,11 @@
data-vis-attrs2="group.increment;oidIncrement/id;incrementPlusShow/checkbox;incrementMinusShow/checkbox;incrementPlusValue[1];incrementMinusValue[-1];incrementValueMax[100];incrementValueMin[0];incrementShowOnlyIfTrue/checkbox;"
data-vis-attrs3="group.blockOperation;blockOperationIfTrue/checkbox;blockOperationIfFalse/checkbox;blockOperationShowDisabled/checkbox;blockOperationShowIcon/checkbox/addBlockOperationShowHideInputfields();blockOperationIcon/image;blockOperationIconNotInEditor/checkbox;blockOperationUseDifferentOID/checkbox/addBlockOperationShowHideInputfields();oidBlockOperation/id;"
data-vis-attrs4="group.dialog;
html_dialog/text;
title;
html_dialog/text;
htmlDialogPadding[5]/slider,0,20,1;
htmlTextSize[16]/slider,5,80,1;
htmlTextPosition/select,,left,center,right,justify;
buttonsAdd/checkbox;
numberOfButtons[1]/slider,1,10,1;
autoclose/slider,0,30000,100;
Expand All @@ -530,7 +533,9 @@
</div>

<div class="vis-widget-dialog <%== this.data.attr('class') %>" id="<%= this.data.attr('wid') %>_dialog" style="display:none" title="<%= this.data.attr('title') %>">
<%== this.data.attr('html_dialog') %>
<div class="dialog-content" style="font-size: <%= this.data.attr('htmlTextSize') %>px; text-align: <%= this.data.attr('htmlTextPosition') %>;padding: 0 <%= this.data.attr('htmlDialogPadding') %>px;">
<%== this.data.attr('html_dialog') %>
</div>

<%
if (this.data.attr('buttonsAdd')) { %>
Expand Down
1 change: 1 addition & 0 deletions widgets/vis-homekittiles/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,7 @@
/*#region Basic design for text-only */
.homekitTiles.tile.textonly .labelGroup1 {
left: unset;
right: unset;
bottom: unset;
top: 50%;
transform: translateY(-50%);
Expand Down
7 changes: 7 additions & 0 deletions widgets/vis-homekittiles/js/vis-homekittiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ $.extend(
"headline1": { "en": "Headline 1", "de": "Überschrift 1" },
"headline2": { "en": "Headline 2", "de": "Überschrift 2" },
"headline3": { "en": "Headline 3", "de": "Überschrift 3" },

"htmlDialogPadding": { "en": "HTML dialog padding", "de": "HTML-Diaglog Innenabstand" },
"htmlTextPosition": { "en": "HTML text position", "de": "HTML Textausrichtung" },
"htmlTextSize": { "en": "HTML text size", "de": "HTML Textgröße" },



"icon_": { "en": "Icon button ", "de": "Icon Schaltfläche " },
"iconButton_": { "en": "Icon button ", "de": "Icon Schaltfläche " },
"iconLowBat": { "en": "Icon for low battery", "de": "Icon für Batterie schwach" },
Expand Down

0 comments on commit 4a1821e

Please sign in to comment.