<?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: Change Attribute Table widget's column width by field name in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882125#M14170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Totally hardcoded option:&amp;nbsp; add this to the AT widget's style.ccs:&lt;/P&gt;&lt;P&gt;the number is your cloumn&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d7ba7d;"&gt;.dgrid-column-field3&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;500px&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;!important&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2020 12:21:31 GMT</pubDate>
    <dc:creator>DávidGregor</dc:creator>
    <dc:date>2020-08-13T12:21:31Z</dc:date>
    <item>
      <title>Change Attribute Table widget's column width by field name</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882124#M14169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would modify the column width to get&amp;nbsp; automatically resized to content, what is maybe too much.&amp;nbsp;But&amp;nbsp;&amp;nbsp;a hardcoded (specify field names) version would be better. Just i cannot find my way to the columns creation.&lt;/P&gt;&lt;P&gt;Any idea to stop long string's breakings in the cells?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is just theoretical:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aspect.around(this.grid, "renderColumns", function(original) {&lt;BR /&gt; return function(object) {&lt;BR /&gt; var column = original.apply(this, arguments);&lt;BR /&gt; console.log(columns);&lt;BR /&gt; if(object['SDE.TABLE.FIELD']){&lt;BR /&gt; console.log('found');//object is the row data object so change the field name to your own&lt;BR /&gt; html.addClass(columns, 'wideColumn');&lt;BR /&gt; }&lt;BR /&gt; return columns;&lt;BR /&gt; };&lt;BR /&gt; });&lt;BR /&gt; console.log("run");&lt;BR /&gt; this.grid.refresh();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style:&lt;/P&gt;&lt;P&gt;.wideColumn {&lt;/P&gt;&lt;P&gt;width:400px !important;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 11:17:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882124#M14169</guid>
      <dc:creator>DávidGregor</dc:creator>
      <dc:date>2020-08-13T11:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Change Attribute Table widget's column width by field name</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882125#M14170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Totally hardcoded option:&amp;nbsp; add this to the AT widget's style.ccs:&lt;/P&gt;&lt;P&gt;the number is your cloumn&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d7ba7d;"&gt;.dgrid-column-field3&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;500px&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;!important&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 12:21:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882125#M14170</guid>
      <dc:creator>DávidGregor</dc:creator>
      <dc:date>2020-08-13T12:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change Attribute Table widget's column width by field name</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882126#M14171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in _FeatureTable.js&amp;nbsp; you can console.log(header)&lt;/P&gt;&lt;P&gt;and you can see the classes of your headers, so you can be more specific in the css.&lt;/P&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;capital letters are sample values for the scheme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4;"&gt;&lt;SPAN style="color: #d7ba7d;"&gt;.field-SDE-TABLE-FIELD&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;width&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;600px&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;!important&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #d4d4d4;"&gt;&lt;SPAN style="color: #d4d4d4;"&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 12:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/change-attribute-table-widget-s-column-width-by/m-p/882126#M14171</guid>
      <dc:creator>DávidGregor</dc:creator>
      <dc:date>2020-08-13T12:32:56Z</dc:date>
    </item>
  </channel>
</rss>

