<?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: Call public update(options: VisualUpdateOptions) in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627550#M1797</link>
    <description>&lt;P&gt;Do you want to avoid calling the update method if a user resizes your visual?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you can detect a type of update by using &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/d8770dbc2b22625082230c26c0669e99b3dfcbaf/templates/visuals/.api/v2.2.0/PowerBI-visuals.d.ts#L1412" target="_blank" rel="noopener"&gt;VisualUpdateOptions.type&amp;nbsp;&lt;/A&gt;(you get VisualUpdateOptions in the update method).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/d8770dbc2b22625082230c26c0669e99b3dfcbaf/templates/visuals/.api/v2.2.0/PowerBI-visuals.d.ts#L14" target="_blank" rel="noopener"&gt;The type&lt;/A&gt; allows detecting an update type.&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" rel="noopener"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 07:00:31 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2019-02-20T07:00:31Z</dc:date>
    <item>
      <title>Call public update(options: VisualUpdateOptions)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627181#M1794</link>
      <description>&lt;P&gt;Hei&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the best way to call&amp;nbsp; -&amp;gt; public update(options: VisualUpdateOptions)&amp;nbsp; without resizing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 20:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627181#M1794</guid>
      <dc:creator>mikihiir</dc:creator>
      <dc:date>2019-02-19T20:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Call public update(options: VisualUpdateOptions)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627550#M1797</link>
      <description>&lt;P&gt;Do you want to avoid calling the update method if a user resizes your visual?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, you can detect a type of update by using &lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/d8770dbc2b22625082230c26c0669e99b3dfcbaf/templates/visuals/.api/v2.2.0/PowerBI-visuals.d.ts#L1412" target="_blank" rel="noopener"&gt;VisualUpdateOptions.type&amp;nbsp;&lt;/A&gt;(you get VisualUpdateOptions in the update method).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-tools/blob/d8770dbc2b22625082230c26c0669e99b3dfcbaf/templates/visuals/.api/v2.2.0/PowerBI-visuals.d.ts#L14" target="_blank" rel="noopener"&gt;The type&lt;/A&gt; allows detecting an update type.&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" rel="noopener"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:00:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627550#M1797</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-02-20T07:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Call public update(options: VisualUpdateOptions)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627863#M1799</link>
      <description>&lt;P&gt;Nope&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to call it when ever i want to, lets say i select a dropdown value&amp;nbsp; and after that i need update method to be triggered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 14:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/627863#M1799</guid>
      <dc:creator>mikihiir</dc:creator>
      <dc:date>2019-02-20T14:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Call public update(options: VisualUpdateOptions)</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/628725#M1802</link>
      <description>&lt;P&gt;The update method is called every time any filter or selection is applied or there's a change in Formatting Panel for this visual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can call it whenever you want from your code. You just need to keep the update options or split update method into a few methods. We usually split update into the update and render.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The update indicates a change in data. The render indicates a rendering flow.&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;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 10:14:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Call-public-update-options-VisualUpdateOptions/m-p/628725#M1802</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2019-02-21T10:14:59Z</dc:date>
    </item>
  </channel>
</rss>

