Skip to content

🙏 Table colors and Grid issues #504

Answered by pgundlach
Cicorione asked this question in Q&A
Discussion options

You must be logged in to vote

This comes closer to your code. Again, just the title block.

There are two columns (one mandatory one optional) with the ratio 3:1. I'd center the red NEW but you can of course chose whatever you want.

<PlaceObject>
    <Table padding="2mm" width="6" stretch="max" fontfamily="tito">
        <Columns>
            <Column width="3*" />

            <!-- ADD "NEW" COLUMN -->
            <Switch>
                <Case test="@new = 'true'">
                    <Column width="1*" />
                </Case>
            </Switch>
            <!-- END "NEW" COLUMN -->
        </Columns>

        <Tr backgroundcolor="yellow">
            <Td>
                <Paragraph>
                    <B>
    …

Replies: 3 comments 2 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by Cicorione
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