TableColumnStyle
in package
implements
JsonSerializable
FinalYes
Style for table columns.
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $backgroundColor : string|null
- The background color.
- $conditional : array<int, array<string, mixed>>|null
- Conditional styles.
- $divider : TableStrokeStyle|null
- The column divider.
- $maximumWidth : int|null
- The maximum column width.
- $minimumWidth : int|null
- The minimum column width.
- $width : int|null
- The column width.
Methods
- jsonSerialize() : array<string, mixed>
- {@inheritdoc}
- setBackgroundColor() : $this
- Set the background color.
- setConditional() : $this
- Set conditional styles.
- setDivider() : $this
- Set the column divider.
- setMaximumWidth() : $this
- Set the maximum column width.
- setMinimumWidth() : $this
- Set the minimum column width.
- setWidth() : $this
- Set the column width.
Properties
$backgroundColor
The background color.
private
string|null
$backgroundColor
= null
$conditional
Conditional styles.
private
array<int, array<string, mixed>>|null
$conditional
= null
$divider
The column divider.
private
TableStrokeStyle|null
$divider
= null
$maximumWidth
The maximum column width.
private
int|null
$maximumWidth
= null
$minimumWidth
The minimum column width.
private
int|null
$minimumWidth
= null
$width
The column width.
private
int|null
$width
= null
Methods
jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : array<string, mixed>
Return values
array<string, mixed>setBackgroundColor()
Set the background color.
public
setBackgroundColor(string $color) : $this
Parameters
- $color : string
-
The color in hex format.
Return values
$thissetConditional()
Set conditional styles.
public
setConditional(array<int, array<string, mixed>> $conditional) : $this
Parameters
- $conditional : array<int, array<string, mixed>>
-
The conditional styles.
Return values
$thissetDivider()
Set the column divider.
public
setDivider(TableStrokeStyle $divider) : $this
Parameters
- $divider : TableStrokeStyle
-
The divider stroke.
Return values
$thissetMaximumWidth()
Set the maximum column width.
public
setMaximumWidth(int $width) : $this
Parameters
- $width : int
-
The maximum width in points.
Return values
$thissetMinimumWidth()
Set the minimum column width.
public
setMinimumWidth(int $width) : $this
Parameters
- $width : int
-
The minimum width in points.
Return values
$thissetWidth()
Set the column width.
public
setWidth(int $width) : $this
Parameters
- $width : int
-
The width in points.