TableBorder
The object for setting borders for tables.
Declaration
object TableBorderProperties
| Name | Type | Description |
|---|---|---|
all | TableStrokeStyle | 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. |
bottom | boolean | Indicates whether Apple News applies the border to the bottom. |
left | boolean | Indicates whether Apple News applies the border to the left side. |
right | boolean | Indicates whether Apple News applies the border to the right side. |
top | boolean | 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
}
}
}
}
}
}