The object for applying styles to table columns that meet certain conditions.
- Apple News Format 1.7+
The background color for the column.
If this property is omitted, the background will be transparent.
The cell’s background color is highest priority, followed by column, and finally 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 stroke style for the divider line to the right of the column.
An array of one or more selectors, each of which specifies one or more conditions.
This conditional table column style will be applied to columns that meet all of the conditions of at least one of the selectors.
The relative column width. This value influences the distribution of column width but does not dictate any exact values. To set an exact minimum width, use
It might be useful to think of the value of
width as a percentage of the component’s width. For example, if you know that one column’s width should be about half that of the whole component, and another should be about a quarter of the component width, use values of
Table columns can have conditional styles—styles that are applied to columns that meet certain conditions. Any table column style can be used as a conditional style.
For example, you might define a conditional table column style that changes the background color for all odd-numbered columns.
This object can be used in TableColumnStyle.