class column implements JsonSerializable

internal  
 

Table column DTO.

Represents a single column definition for a data grid.

Methods

__construct(string $key, string $label, bool $sortable = false, bool $searchable = false, string $type = 'text', array $options = [])

No description

array
jsonSerialize()

Serialize the column definition for JSON consumers.

Details

at line 39
__construct(string $key, string $label, bool $sortable = false, bool $searchable = false, string $type = 'text', array $options = [])

No description

Parameters

string $key

Unique identifier for the column

string $label

Display label

bool $sortable

Whether the column can be sorted

bool $searchable

Whether the column is searchable

string $type

Type of data (text, date, boolean, action, etc)

array $options

Additional display options

at line 53
array jsonSerialize()

Serialize the column definition for JSON consumers.

Return Value

array