<?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: How to get collection widget to left-justify variable-width cells? in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949842#M66611</link>
    <description>&lt;P&gt;Thanks Gabriel.&amp;nbsp; The fact that "&lt;SPAN&gt;LeftAlignFinalRow" doesn't work with dynamic sizing is a good point.&amp;nbsp; If you look at my screen snap, each row is actually the final row in the section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was aware of the BMCore and have even noticed the BMCollection classes in the source code generated by native Thingworx collections.&amp;nbsp; I was just hoping it was a quick setting I was missing :).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We'll check out the BMCoreWidgets, it will just take more time before we have that opportunity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2024 11:26:05 GMT</pubDate>
    <dc:creator>ptc-2242103</dc:creator>
    <dc:date>2024-05-15T11:26:05Z</dc:date>
    <item>
      <title>How to get collection widget to left-justify variable-width cells?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/948987#M66597</link>
      <description>&lt;P&gt;We are currently using Thingworx Foundation 9.3.3.&lt;BR /&gt;&lt;BR /&gt;We have a collection used to display a series of KPIs in a scoreboard.&amp;nbsp; In previous versions of our application, we had a fixed MashupWidth and MashupHeight and the FlowLayoutGravity set to spaced.&amp;nbsp; This, very nicely, left justified all the cells in a row.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Old Scoreboard" style="width: 784px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104029iEC0F1E1D6DCF1583/image-size/large?v=v2&amp;amp;px=999" role="button" title="old_scoreboard.png" alt="Old Scoreboard" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Old Scoreboard&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After implementing an enhancement that allows for additional information in the cells, we needed to remove the fixed cell width and height and, instead, use the CellHeightField and CellWidthField.&amp;nbsp; Now, with the same layout settings, the cells spread across the width of the browser.&amp;nbsp; This is much less desirable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="New Scoreboard" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104030iD730373A64856FEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="new_scoreboard.png" alt="New Scoreboard" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;New Scoreboard&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there any way to get the cells to layout in the old way, while still having the variable width/height?&amp;nbsp; We are experiencing this on both Chrome and Edge browsers.&lt;BR /&gt;&lt;BR /&gt;I admit that this is a little strange, as none of the documented layouts seem like they would produce the original layout, but we would very much like to have the left-justified cells.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Edge&lt;/SPAN&gt;: Cells will align to the nearest&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;side that contain them&lt;/SPAN&gt;, otherwise will maintain even spacing between themselves.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Spaced&lt;/SPAN&gt;: Cells will maintain even spacing between themselves and the widget sides that contain them.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Center&lt;/SPAN&gt;: Cells will center within available width while displaying as many cells in each row as will fit.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Expand&lt;/SPAN&gt;: Cells will expand to fill available width, even beyond the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;MashupWidth&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property setting.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 13:33:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/948987#M66597</guid>
      <dc:creator>ptc-2242103</dc:creator>
      <dc:date>2024-05-10T13:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get collection widget to left-justify variable-width cells?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949553#M66602</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Collection Widget has a bit of a history. I won't get into it. But if you want a more upgraded one, check the version from the original developer(Bogdan Mihaiciuc) of the widget:&amp;nbsp;&lt;A href="https://github.com/ptc-iot-sharing/BMCoreUIWidgets" target="_blank"&gt;https://github.com/ptc-iot-sharing/BMCoreUIWidgets&amp;nbsp;&lt;/A&gt; . Where he has more very useful widgets in there. Like TypeScript Class, Popover Controller, Menu Controller for the collection and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for your case, there is a setting "LeftAlignFinalRow" which only works when mashup cells have a static size.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommend using Bogdan's version of the Collection widget -&amp;gt; Collection View, which has more options AND...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GabrielB_0-1715676040714.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/104242i90A8B3B45D391BAB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GabrielB_0-1715676040714.png" alt="GabrielB_0-1715676040714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Align Start! And it's easier to work with with the configuration popup, as it offers documentation on each setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you install BMCoreUI you will see an option on the Collection widget in the mashup to upgrade to Collection View from BMCoreUI, so the migration to that is a click.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 08:44:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949553#M66602</guid>
      <dc:creator>GabrielB</dc:creator>
      <dc:date>2024-05-14T08:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get collection widget to left-justify variable-width cells?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949842#M66611</link>
      <description>&lt;P&gt;Thanks Gabriel.&amp;nbsp; The fact that "&lt;SPAN&gt;LeftAlignFinalRow" doesn't work with dynamic sizing is a good point.&amp;nbsp; If you look at my screen snap, each row is actually the final row in the section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was aware of the BMCore and have even noticed the BMCollection classes in the source code generated by native Thingworx collections.&amp;nbsp; I was just hoping it was a quick setting I was missing :).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We'll check out the BMCoreWidgets, it will just take more time before we have that opportunity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 11:26:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949842#M66611</guid>
      <dc:creator>ptc-2242103</dc:creator>
      <dc:date>2024-05-15T11:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get collection widget to left-justify variable-width cells?</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949847#M66612</link>
      <description>&lt;P&gt;I recommend using BMCoreUIWidgets in any of your projects. We feel that without them, you can't really make a production ready application and also make it easy to maintain.&lt;/P&gt;&lt;P&gt;Replacing all validators, expressions and Event roters with the TypeScript.class widget bridges the learning gap for a dev that just started with TWX.&amp;nbsp; Using typescript as the front-end logic and not having to fiddle with all those bindings and restrictions from the other widgets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 11:37:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/How-to-get-collection-widget-to-left-justify-variable-width/m-p/949847#M66612</guid>
      <dc:creator>GabrielB</dc:creator>
      <dc:date>2024-05-15T11:37:36Z</dc:date>
    </item>
  </channel>
</rss>

