Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hegdehog committed Nov 15, 2022
1 parent fcc8b61 commit 75d1277
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
6 changes: 6 additions & 0 deletions definition.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ExtensionObject Label="HTML TextBox QV10" Description="Qlikview extension to add HTML code in a TextBox">

<Text  Expression="" />

</ExtensionObject>
46 changes: 46 additions & 0 deletions properties.qvpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<div class="ToolWindow-MainBody">
<table width="360px">
<tr class="ToolProperty-Header" >
<td onclick="Qva.SelectToolPane(this, false)">HTML TextBox QV10</td>
<th onclick="Qva.SelectToolPane(this, true)">
<img alt="" src="unpinned.png" icon="web:unpinned" avq="img:.Chart.Title"/>
</th>
</tr>
<tr>
<td colspan="2">
<table width="100%">
<colgroup>
<col width="100px" />
<col width="190px" />
<col width="30px" />
</colgroup>
<tr>
<td class="ToolProperty-Literal">
HTML Code:
</td>
<td colspan="2">
<input style="width: 200px" avq="edit:.Chart.Text.0.Content" readonly="readonly" />
<button class="ToolProperty-DialogButton" avq="dlg:.Chart.Text.0.Content:Expression.qvpp">
Editar HTML
</button>
</td>
</tr>
</table>
</td>
</tr>
<tr class="ToolProperty-Header" avq="panel::Layout.qvpp">
<td>Layout</td>
<th></th>
</tr>
<tr style="display: none">
<td colspan="2"></td>
</tr>
<tr class="ToolProperty-Header" avq="panel::Caption.qvpp">
<td>Caption</td>
<th></th>
</tr>
<tr style="display: none">
<td colspan="2"></td>
</tr>
</table>
</div>
12 changes: 12 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Qva.AddExtension('HTML TextBox QV10', function() {

this.Element.innerHTML = "<div style='width: 100%; height: 100%; overflow: auto;></div>"; this.Element.firstChild.innerHTML = this.Layout.Text0.text;

setProps(this.Element.firstChild, this);

function setProps(obj, parentObj) {
obj.style.fontStyle = parentObj.Layout.Style.fontstyle;
obj.style.fontFamily = parentObj.Layout.Style.fontfamily;
obj.style.fontSize = parentObj.Layout.Style.fontsize + "pt";
}
});

0 comments on commit 75d1277

Please sign in to comment.