class table_builder

Table Builder.

Fluid API to define data tables that can be consumed by Vue components.

Methods

static table_builder
make()

Start a new table definition.

column(string $key, string $label, array $settings = [])

Add a column to the table.

filter(string $key, string $label, string $type = 'select', array $options = [])

Add a filter definition.

action(string $key, string $label, string $icon = '', array $props = [])

Add an action button.

with_options(array $options)

Set general table options.

build()

Build the final configuration DTO.

Details

at line 44
static table_builder make()

Start a new table definition.

Return Value

table_builder

at line 64
table_builder column(string $key, string $label, array $settings = [])

Add a column to the table.

Parameters

string $key
string $label
array $settings {

Return Value

table_builder

at line 88
table_builder filter(string $key, string $label, string $type = 'select', array $options = [])

Add a filter definition.

Parameters

string $key
string $label
string $type

select, text, date, etc

array $options

Return Value

table_builder

at line 110
table_builder action(string $key, string $label, string $icon = '', array $props = [])

Add an action button.

Parameters

string $key
string $label
string $icon
array $props

Return Value

table_builder

at line 129
table_builder with_options(array $options)

Set general table options.

Parameters

array $options

Return Value

table_builder

at line 141
table_config build()

Build the final configuration DTO.

Return Value

table_config