This content has been marked as final.
Show 1 reply
-
Re: Editing my script around
Mikael Gerhardsson Mar 4, 2014 11:05 AM (in response to Kevin Maroney )I am not sure if this is what you want...
Create a separate css-file and import it into your extension object (in script.js):
var path = Qva.Remote + "?public=only&name=Extensions/<ObjectName>/"; Qva.LoadCSS(path + <CSS-file>.css);
In this css file you can add everything within the <style> tags:
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; margin: auto; position: relative; width: 960px; } text { font: 10px sans-serif; } .axis path, .axis line { fill: none; stroke: #000; shape-rendering: crispEdges; } form { position: absolute; right: 10px; top: 10px; }
The remaining html syntax can probably be written in script.js something like:
var HTML += "<form>"; HTML += "<label><input type='radio' name='mode' value='grouped'> Grouped</label>"; HTML += "<label><input type='radio' name='mode' value='stacked' checked> Stacked</label>"; HTML += "</form>";
Use the variable HTML as:
_this.Element.innerHTML = HTML;