Designing Documents (cadoc)
  • 30 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Designing Documents (cadoc)

  • Dark
    Light

Article summary

There are three ways of working with table row padding.

  1. Do nothing - tables will render as usual.
  2. Use the space before and space after table row properties in design time.
  3. Set sitedef properties for table row top and bottom padding.

We've introduced a number of new sitedef properties for documents in order to handle table row top and bottom padding. If you leave them out, rendering will perform as usual.

<Property name="cadoc.use.new.table.default.row.padding" value="true"/>
<Property name="cadoc.table.header.top.padding" value="4"/>
<Property name="cadoc.table.header.bottom.padding" value="4"/>
<Property name="cadoc.table.detail.top.padding" value="4"/>
<Property name="cadoc.table.detail.bottom.padding" value="4"/>
<Property name="cadoc.table.footer.top.padding" value="4"/>
<Property name="cadoc.table.footer.bottom.padding" value="4"/>

The first <Property name="cadoc.use.new.table.default.row.padding" value="true"/>property sets padding to a minimum if set to true, hence making the table rows as tight as possible. The default value of this property is false in order to ensure previous table rendering. The previous default padding is more spacious and will be used if no <Property name="cadoc.use.new.table.default.row.padding" value="true"/> property is set at all or its value is set to false.

The following six properties set top and bottom padding for table header, detail and footer parts. You decide for yourself which properties to use. Each property is handled separately and will be applied regardless of the first property (<Property name="cadoc.use.new.table.default.row.padding" value="true"/>) if set.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.