<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Add a  CSS class to a generated html table element using search container.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111216074" />
  <subtitle>Add a  CSS class to a generated html table element using search container.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111216074</id>
  <updated>2026-04-06T22:08:09Z</updated>
  <dc:date>2026-04-06T22:08:09Z</dc:date>
  <entry>
    <title>RE: Add a  CSS class to a generated html table element using search contain</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111222089" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111222089</id>
    <updated>2018-10-17T20:23:59Z</updated>
    <published>2018-10-17T20:23:59Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Joao Vicente:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;I'm using LR DXP, so I will try to find a workaround.&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;If you're using DXP 7.1, the change was released to subscribers as
  part of the DXP-2 fix pack.&lt;/p&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-10-17T20:23:59Z</dc:date>
  </entry>
  <entry>
    <title>RE: Add a  CSS class to a generated html table element using search contain</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111218120" />
    <author>
      <name>Joao Vicente</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111218120</id>
    <updated>2018-10-17T09:09:23Z</updated>
    <published>2018-10-17T09:09:23Z</published>
    <summary type="html">&lt;p&gt;Thank you for your clarification.&lt;br /&gt; I'm using LR DXP, so I will
  try to find a workaround.&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt;
  &lt;br /&gt; Best regards,&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt; João Vicente&lt;/p&gt;</summary>
    <dc:creator>Joao Vicente</dc:creator>
    <dc:date>2018-10-17T09:09:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Add a  CSS class to a generated html table element using search contain</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111216647" />
    <author>
      <name>Minhchau Dang</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111216647</id>
    <updated>2018-10-16T22:42:01Z</updated>
    <published>2018-10-16T22:42:01Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Joao Vicente:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;there is any way to add a css class to the table element?&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Unfortunately, not until &lt;a href="https://issues.liferay.com/browse/LPS-82855"&gt;LPS-82855&lt;/a&gt;
  (which adds a &lt;code&gt;searchResultCssClass&lt;/code&gt; attribute to the
  &lt;code&gt;liferay-ui:search-iterator&lt;/code&gt; tag), which won't be available
  until the next 7.1 GA release. If you need the functionality before
  that release, and you can't build Liferay from source yourself, you
  can try downloading a nightly 7.1.x snapshot from &lt;a href="https://releases.liferay.com/portal/snapshot-7.1.x/"&gt;releases.liferay.com&lt;/a&gt;
  to see if everything works for you.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Minhchau Dang</dc:creator>
    <dc:date>2018-10-16T22:42:01Z</dc:date>
  </entry>
  <entry>
    <title>Add a  CSS class to a generated html table element using search container.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111216073" />
    <author>
      <name>Joao Vicente</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111216073</id>
    <updated>2018-10-16T18:06:43Z</updated>
    <published>2018-10-16T18:06:43Z</published>
    <summary type="html">&lt;p&gt;I've a search container that generates a  div with a table element inside.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;liferay-ui:search-container
  total=&amp;quot;${totalTransactionsCount}&amp;quot;
  emptyResultsMessage=&amp;quot;no-transactions-to-pay&amp;quot;
  curParam=&amp;quot;transactionPage&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;liferay-ui:search-container-results
  results=&amp;quot;${totalTransactionsList}&amp;quot; /&amp;gt;&lt;br /&gt;
       &amp;lt;liferay-ui:search-container-row
  className=&amp;quot;foo.Transaction&amp;quot;
  modelVar=&amp;quot;transaction&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;liferay-ui:search-container-column-text
  cssClass=&amp;quot;select&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;aui:input
  cssClass=&amp;quot;selectAllTransactions&amp;quot;
  id=&amp;quot;checkAllTransactions&amp;quot;
  name=&amp;quot;checkAllTransactions&amp;quot; label=&amp;quot;&amp;quot;&lt;br /&gt;
          type=&amp;quot;checkbox&amp;quot; checked=&amp;quot;false&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;/liferay-ui:search-container-column-text&amp;gt;&lt;br /&gt;
        &amp;lt;liferay-ui:search-container-column-text cssClass
  =&amp;quot;text-nowrap&amp;quot; name=&amp;quot;totalAmount&amp;quot;
  value=&amp;quot;${transaction.totalAmount} &amp;amp;#8364;&amp;quot;/&amp;gt;&lt;br /&gt;
       &amp;lt;/liferay-ui:search-container-row&amp;gt;&lt;br /&gt;
       &amp;lt;liferay-ui:search-iterator /&amp;gt;&lt;br /&gt;
      &amp;lt;/liferay-ui:search-container&amp;gt;&lt;br /&gt;  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;there is any way to add a css class to the table element? &lt;/p&gt;
&lt;p&gt;i've tried to use a JS function,  but on the onLoad step the table is
  still empty, it is only loaded in the end of all.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;
  &lt;br /&gt; Joao&lt;/p&gt;</summary>
    <dc:creator>Joao Vicente</dc:creator>
    <dc:date>2018-10-16T18:06:43Z</dc:date>
  </entry>
</feed>
