Contents

TableBorder

The object for setting borders for tables.

Declaration

object TableBorder

Properties

NameTypeDescription
allTableStrokeStyle

Defines the stroke properties of the border. You can’t set stroke properties for each side; you can only disable or enable the border for each side.

bottomboolean

Indicates whether Apple News applies the border to the bottom.

leftboolean

Indicates whether Apple News applies the border to the left side.

rightboolean

Indicates whether Apple News applies the border to the right side.

topboolean

Indicates whether Apple News applies the border to the top.

Discussion

The TableBorder object defines a table cell border. The border style is the same for all sides of the table cell. Use a value of false for any side of a border that you don’t want to show.

Example

{
  "componentStyles": {
    "exampleStyle": {
      "tableStyle": {
        "cells": {
          "border": {
            "all": {
              "width": 2,
              "color": "#ddd",
              "style": "solid"
            },
            "left": false,
            "right": false
          }
        }
      }
    }
  }
}

See Also

Table Styles