Contents

Padding

The object for defining space around the content in a table cell.

Declaration

object Padding

Properties

NameTypeDescription
bottom(SupportedUnits | number)

The amount of padding between the bottom of the cell and the content, as a number in points or using the available units for components. See Specifying Measurements for Components.

left(SupportedUnits | number)

The amount of padding between the left side of the cell and the content, as a number in points or using the available units for components.

right(SupportedUnits | number)

The amount of padding between the right side of the cell and the content, as as a number in points or using the available units for components.

top(SupportedUnits | number)

The amount of padding between the top of the cell and the content, as a number in points or using the available units for components.

Discussion

Use cell padding to add space around the content in the cell. For example, you can set the amount of padding between the right side of the cell and the content, or the left side of the cell and the content.

You can use this object in TableCellStyle and ConditionalTableCellStyle.

Example

{
  "componentStyles": {
    "exampleForTables": {
      "tableStyle": {
        "cells": {
          "verticalAlignment": "top",
          "padding": {
            "left": 6,
            "right": 6,
            "bottom": 4,
            "top": 2
          }
        }
      }
    }
  }
}

See Also

Table Styles