Skip to content

Exclude a specific row in a columnGroup support #31

Answered by maruTA-bis5
kfukutomi asked this question in Q&A
Discussion options

You must be logged in to vote

@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 has exportable="false" attribute.

<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"

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kfukutomi
Comment options

Answer selected by maruTA-bis5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #28 on April 13, 2022 03:54.