Apple News API PHP Client

TableRowStyle
in package
implements JsonSerializable

FinalYes

Style for table rows.

Tags
see
https://developer.apple.com/documentation/apple_news/tablerowstyle

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 row divider.
$height  : int|null
The row height.

Methods

jsonSerialize()  : array<string, mixed>
{@inheritdoc}
setBackgroundColor()  : $this
Set the background color.
setConditional()  : $this
Set conditional styles.
setDivider()  : $this
Set the row divider.
setHeight()  : $this
Set the row height.
zebraStripe()  : self
Create a zebra stripe style for alternating rows.

Properties

$backgroundColor

The background color.

private string|null $backgroundColor = null

$conditional

Conditional styles.

private array<int, array<string, mixed>>|null $conditional = 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
$this

setConditional()

Set conditional styles.

public setConditional(array<int, array<string, mixed>> $conditional) : $this
Parameters
$conditional : array<int, array<string, mixed>>

The conditional styles.

Return values
$this

setHeight()

Set the row height.

public setHeight(int $height) : $this
Parameters
$height : int

The height in points.

Return values
$this

zebraStripe()

Create a zebra stripe style for alternating rows.

public static zebraStripe(string $color) : self
Parameters
$color : string

Background color for the row.

Return values
self

A style configured for striped rows (use with odd/even selector).


        
On this page

Search results