Skip to content

vyaz-monorepo / core/src / TableCellStyle

Interface: TableCellStyle ​

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

Style for a single TableCell. Falls back to TableFrame.defaultCellStyle.

Extends ​

Properties ​

allowOverflow? ​

optional allowOverflow?: boolean

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

Let content wider/taller than the cell's padding box paint past its edges instead of being clipped. Default false (clipped) — matches svg-table-core's default.


bgColor? ​

optional bgColor?: string

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

Cell background fill.


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


cx? ​

optional cx?: number

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

Fine-tuning nudge applied to the cell's content position, in px, on top of padding/alignment/verticalAlign. Positive cx moves right, positive cy moves down. Default 0.


cy? ​

optional cy?: number

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

See ​

cx


paddings? ​

optional paddings?: Widths

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

Inner padding, CSS shorthand. Default 8 on all sides.


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


verticalAlign? ​

optional verticalAlign?: VerticalAlignment

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

Vertical alignment of the cell's content within its row height. Default 'top'.

Released under the MIT License.