Exclude a specific row in a columnGroup support #31
-
I want the function to exclude a specific row of columnGroup. ex) Exclude rows with a specific styleClass. <p:columnGroup type="header">
<p:row styleClass="not-exportable-row"><!-- Dummy rows for width adjustment -->
<p:column width="50" />
<p:column width="100" />
<p:column width="150" />
</p:row>
<p:row>
<p:column rowspan="2"
headerText="headerText A" />
<p:column colspan="2"
headerText="headerText B" />
</p:row>
<p:row>
<p:column headerText="headerText B-1" />
<p:column headerText="headerText B-2" />
</p:row>
</p:columnGroup> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
spec: Ignore |
Beta Was this translation helpful? Give feedback.
-
@kfukutomi 対象の I've just confirmed that the DataTableExcellaExporter will ignore the header row that does not have any exportable column. <p:columnGroup type="header">
<p:row styleClass="not-exportable-row"><!-- Dummy rows for width adjustment -->
<p:column width="50" exportable="false" />
<p:column width="100" exportable="false" />
<p:column width="150" exportable="false" />
</p:row>
<p:row>
<p:column rowspan="2"
headerText="headerText A" />
<p:column colspan="2"
headerText="headerText B" />
</p:row>
<p:row>
<p:column headerText="headerText B-1" />
<p:column headerText="headerText B-2" />
</p:row>
</p:columnGroup> |
Beta Was this translation helpful? Give feedback.
@kfukutomi 対象の
<p:row>
配下の<p:column>
について、全てexportable="false"
を指定すれば無視することは可能です。I've just confirmed that the DataTableExcellaExporter will ignore the header row that does not have any exportable column.
You can ignore
not-exportable-row
when all<p:column>
in that row hasexportable="false"
attribute.