The object for applying a style to table cells that meet certain conditions.
- Apple News Format 1.7+
The background color for the cell.
If this property is omitted, the background is transparent.
The cell background color is highest priority, followed by the column, and finally the row. All three colors are applied, meaning that non-opaque values can cause combined colors. For example, using a red row together with a blue column, both with 50% opacity, creates a purple cell.
The border for the cell. Because the border is drawn inside the cell, it affects the size of the content within the cell. The bigger the border, the less available space for content.
The height of the cell and its row, as a number in points, or using one of the available units of measure for components.
By default, the height of each row is determined by the height of the content in that row. See Specifying Measurements for Components.
The horizontal alignment of content inside cells.
The minimum width of the cell and its column, as a number in points or using one of the available units of measure for components.
The space around the content in a table cell in points, supported units, or a Padding object that specifies padding for each side separately.
An array of one or more selectors, each of which specifies one or more conditions.
This conditional table cell style is applied to cells that meet all of the conditions of at least one of the selectors.
Defines the vertical alignment of content inside cells.
The column width, as a percentage only. This property only indicates proportionate width and cannot be used to control exact width. See
Cells in Data Table components and HTML Table components can have conditional styles—styles that are applied only to cell that meet certain conditions. Any table cell style can be used as a conditional style.
For example, you might define a conditional table cell style that changes the background color for a cell at a specific location.