Skip to content

vyaz-monorepo / core/src / TableStyle

Interface: TableStyle ​

Defined in: core/src/types/TableTypes.ts:172

Table-wide style.

Extends ​

Properties ​

bgColor? ​

optional bgColor?: string

Defined in: core/src/types/TableTypes.ts:176

Table background fill, painted under row/cell backgrounds.


borderColors? ​

optional borderColors?: ColorsOnWidth

Defined in: core/src/types/TableTypes.ts:63

Per-side border color, CSS shorthand. Default '#000' when a width is set.

Inherited from ​

BorderStyles.borderColors


borderPatterns? ​

optional borderPatterns?: BorderPatterns

Defined in: core/src/types/TableTypes.ts:68

Per-side SVG stroke-dasharray. A side with no pattern (or the whole property absent) is a solid line. [4, 2] = 4px dash, 2px gap, repeating.

Inherited from ​

BorderStyles.borderPatterns


borderShapes? ​

optional borderShapes?: Sides<BorderLineCap>

Defined in: core/src/types/TableTypes.ts:70

Per-side stroke-linecap for that side's (dashed or solid) line. Default 'butt'.

Inherited from ​

BorderStyles.borderShapes


borderWidths? ​

optional borderWidths?: Widths

Defined in: core/src/types/TableTypes.ts:61

Per-side border width, CSS shorthand. 0 (absent) = no border on that side.

Inherited from ​

BorderStyles.borderWidths


colGaps? ​

optional colGaps?: number

Defined in: core/src/types/TableTypes.ts:178

Gap between columns, in px. Default 0.


margins? ​

optional margins?: Widths

Defined in: core/src/types/TableTypes.ts:174

Outer margin around the whole table, CSS shorthand. Default 0.


rowGaps? ​

optional rowGaps?: number

Defined in: core/src/types/TableTypes.ts:180

Gap between rows, in px. Default 0.


rx? ​

optional rx?: number

Defined in: core/src/types/TableTypes.ts:72

Uniform corner radius (all four corners). Asymmetric radii are a future addition.

Inherited from ​

BorderStyles.rx


ry? ​

optional ry?: number

Defined in: core/src/types/TableTypes.ts:74

Uniform corner radius; defaults to rx when only one is given.

Inherited from ​

BorderStyles.ry

Released under the MIT License.