<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Trouble with adding checkbox in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357910#M10653</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let input1 = this.svg.append("input")
                    .attr({
                        type: "checkbox",
                        x: 200,
                        y: 50
                    });&lt;/PRE&gt;&lt;P&gt;However, nothing is shown. What can be wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 08:43:28 GMT</pubDate>
    <dc:creator>ysapiyev</dc:creator>
    <dc:date>2018-02-14T08:43:28Z</dc:date>
    <item>
      <title>Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/356968#M10631</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to add checkbox and tried this code:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="pln"&gt;svg&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;selectAll&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"foreignObject"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;data&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;nodes&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;enter&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"foreignObject"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;attr&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'x'&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; o&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;x&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;attr&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'y'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;  o&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;y&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;attr&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'width'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;50&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;attr&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;'height'&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="lit"&gt;20&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;append&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"xhtml:body"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;html&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"&amp;lt;form&amp;gt;&amp;lt;input type=checkbox id=check&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;/form&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;
     &lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;on&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"click"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt; &lt;SPAN class="kwd"&gt;function&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;d&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; i&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;){&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;            console&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;log&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;svg&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;select&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"#check"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;node&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;().&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;checked&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt; 
            &lt;SPAN class="pun"&gt;})&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;How it&amp;nbsp;can be added using "input"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 06:52:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/356968#M10631</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-02-13T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357465#M10641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/51907"&gt;@ysapiyev&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At first, you should include the second body tag since iframe already has it.&lt;/P&gt;
&lt;P&gt;The input tag can be added by using d3.append method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 18:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357465#M10641</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-13T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357809#M10649</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give an exaple, how it will look like?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 06:24:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357809#M10649</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-02-14T06:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357861#M10650</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might use something like this code snippet:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;d3.select(Your_Root_Element)
    .append("input")
    .attr({
        type: "checkbox"
    });&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 08:07:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357861#M10650</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-14T08:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357910#M10653</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let input1 = this.svg.append("input")
                    .attr({
                        type: "checkbox",
                        x: 200,
                        y: 50
                    });&lt;/PRE&gt;&lt;P&gt;However, nothing is shown. What can be wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 08:43:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/357910#M10653</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-02-14T08:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/358635#M10669</link>
      <description>&lt;P&gt;Does &lt;STRONG&gt;this.svg&lt;/STRONG&gt; contain an svg element?&lt;/P&gt;
&lt;P&gt;Checkbox can be used only in HTML elements such as div, table, footer, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 07:19:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/358635#M10669</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-15T07:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/358737#M10676</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, as I understood, I should add div to svg, then add to it checkbox?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let checkbox_d = d3.select("div")
.append("input")
.attr(type: "checkbox");&lt;/PRE&gt;&lt;P&gt;Is it correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:45:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/358737#M10676</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-02-15T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/359393#M10691</link>
      <description>&lt;P&gt;You should add a &lt;STRONG&gt;div&lt;/STRONG&gt; container to the root element.&lt;/P&gt;
&lt;P&gt;After that you should include&amp;nbsp;&lt;STRONG&gt;input&lt;/STRONG&gt;&amp;nbsp;element and &lt;STRONG&gt;svg&lt;/STRONG&gt; element into this &lt;STRONG&gt;div&lt;/STRONG&gt; container.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SVG element supports the only &lt;A href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element" target="_blank"&gt;SVG elements&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 07:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/359393#M10691</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-16T07:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/359397#M10692</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it will look like that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;let check= d3.select('body')
.append('div')
.append('input')
.type('checkbox')
let svg = d3.select(div)
.append('svg')

&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Feb 2018 07:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/359397#M10692</guid>
      <dc:creator>ysapiyev</dc:creator>
      <dc:date>2018-02-16T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with adding checkbox</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/360600#M10746</link>
      <description>&lt;P&gt;Yes, that's correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 13:35:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Trouble-with-adding-checkbox/m-p/360600#M10746</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-19T13:35:07Z</dc:date>
    </item>
  </channel>
</rss>

