<?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: Custom Visual Object Property Integer Type Not Displaying in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1963757#M30565</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313847"&gt;@riyasdeen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For the properties pane to completely treat as an integer value, you need to add a &lt;FONT face="courier new,courier"&gt;validValues&lt;/FONT&gt; object matching the property name to the object instance when enumerating it. This should ensure that you get a control that will ensure whole values, or Power BI will coerce it for you so you don't have to manage it via code.&lt;/P&gt;
&lt;P&gt;I honestly have no idea how I figured this out as it's not documented anywhere - the easiest way is to show you where I'd normally do this, &lt;A href="https://github.com/dm-p/powerbi-dumbbellChart/blob/master/src/visual.ts#L196" target="_self"&gt;so here you go&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Sun, 18 Jul 2021 03:37:33 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2021-07-18T03:37:33Z</dc:date>
    <item>
      <title>Custom Visual Object Property Integer Type Not Displaying</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1961057#M30549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm putting together a custom visual, I want to have an object property of type integer, but the no control shows up when I set type to integer, control is visible when type is&amp;nbsp;numeric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want decimal values for this control, it should be integers. I can parse the float back to integer in&amp;nbsp; my code but it is not a neat solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below my capabilities.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                "defaultZoomLevel": {
                    "displayName": "Zoom Level",
                    "description": "Default Zoom level for map, should be between 0 and 28",
                    "type": {
                        "integer": true
                    }
                },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below my settings.ts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;export class ProjectionSettings {
  public defaultZoomLevel: number = 7;
}

export class VisualSettings extends DataViewObjectsParser {
  public projection: ProjectionSettings = new ProjectionSettings();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Properties pane draws a blank when integer = true&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riyasdeen_1-1626405008546.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/554430i87C2B8C45D03E952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riyasdeen_1-1626405008546.png" alt="riyasdeen_1-1626405008546.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shows a text control when numeric = true.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="riyasdeen_0-1626404961349.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/554428i6E3BF70E991A1D48/image-size/medium?v=v2&amp;amp;px=400" role="button" title="riyasdeen_0-1626404961349.png" alt="riyasdeen_0-1626404961349.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Riyas&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 03:11:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1961057#M30549</guid>
      <dc:creator>riyasdeen</dc:creator>
      <dc:date>2021-07-16T03:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Object Property Integer Type Not Displaying</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1963757#M30565</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313847"&gt;@riyasdeen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;For the properties pane to completely treat as an integer value, you need to add a &lt;FONT face="courier new,courier"&gt;validValues&lt;/FONT&gt; object matching the property name to the object instance when enumerating it. This should ensure that you get a control that will ensure whole values, or Power BI will coerce it for you so you don't have to manage it via code.&lt;/P&gt;
&lt;P&gt;I honestly have no idea how I figured this out as it's not documented anywhere - the easiest way is to show you where I'd normally do this, &lt;A href="https://github.com/dm-p/powerbi-dumbbellChart/blob/master/src/visual.ts#L196" target="_self"&gt;so here you go&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 03:37:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1963757#M30565</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2021-07-18T03:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Visual Object Property Integer Type Not Displaying</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1963877#M30566</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That did the trick, thanks for your help. Appreciate it.&lt;/P&gt;&lt;P&gt;One of those undocumented goodies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Riyas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 08:13:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Visual-Object-Property-Integer-Type-Not-Displaying/m-p/1963877#M30566</guid>
      <dc:creator>riyasdeen</dc:creator>
      <dc:date>2021-07-18T08:13:11Z</dc:date>
    </item>
  </channel>
</rss>

