-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} | ||
}); |