Border
The object for setting borders for component sides or tables.
Declaration
object BorderProperties
| Name | Type | Description |
|---|---|---|
all | StrokeStyle | 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 Border object defines a component or a table cell border, including the border stroke style. The border style is the same for all sides of the component or table cell. Use a value of false for any side of a border that you don’t want to show.
You can use this object in ComponentStyle, TableCellStyle, and ConditionalTableCellStyle.
Example
{
"componentStyles": {
"exampleComponentStyle": {
"border": {
"all": {
"width": 1,
"color": "#ddd"
},
"left": false,
"right": false
}
}
}
}