View
trait View
Properties
| string|null | $title | ||
| string|null | $titleClasses | ||
| string|null | $customHeader | ||
| string|null | $main_wrapper_classes | ||
| string|null | $table_classes | ||
| bool | $override_table_classes | ||
| bool | $sticky_header | ||
| bool | $has_counter | ||
| string|null | $modals_view | ||
| string|null | $yat_most_left_view | ||
| string|null | $yat_less_left_view | ||
| string|null | $yat_most_right_view | ||
| string|null | $yat_less_right_view | ||
| bool | $showCardsOnMobile | ||
| bool | $useCards | ||
| bool | $yat_is_mobile | ||
| array | $yat_custom_buttons | ||
| string | $yat_button_variant | ||
| string | $theme | ||
| string|null | $bulkThemeOverride | ||
| string|null | $buttonThemeOverride | ||
| string|null | $inputThemeOverride | ||
| array | $themeConfig | ||
| array | $yat_card_modal_buttons | ||
| $mobileDetailsModalOpen | |||
| $mobileDetailsRow | |||
| $showOptionsOnlyOnRowSelect | |||
| $layout | |||
| $stripRows |
Methods
Set the table theme.
Get configuration for a specific theme from presets.
Override the bulk actions theme.
Override the button theme.
Override specific theme settings.
Initialize view settings.
Detect environmental data (e.g. mobile device).
Add custom buttons to the table header.
Add buttons to the card modal view.
Toggle the record counter display.
No description
No description
Open the mobile details modal for a specific row.
Close the mobile details modal.
Set the table title.
Override default title classes.
Set custom HTML content for the header.
Set CSS classes for the main component wrapper.
Add CSS classes to the table element.
Set (overwrite) CSS classes for the table element.
Enable sticky header for the table.
Set the view for modals.
Set the view for the leftmost header area.
Set the view for the inner left header area.
Set the view for the rightmost header area.
Set the view for the inner right header area.
Set the button variant style.
Configure options visibility based on row selection specific logic.
Set the main layout view.
Enable or disable striped rows.
Get the CSS classes for row striping based on configuration.
Details
at line 125
void
setTheme(string $theme)
Set the table theme.
at line 137
array
getThemeConfig(string $theme)
Get configuration for a specific theme from presets.
at line 149
void
setBulkThemeOverride(string|null $theme)
Override the bulk actions theme.
at line 160
void
setButtonThemeOverride(string|null $theme)
Override the button theme.
at line 171
void
setInputThemeOverride(string|null $theme)
Override specific theme settings.
at line 181
void
mountView()
Initialize view settings.
at line 193
void
gatherEnvData()
Detect environmental data (e.g. mobile device).
at line 207
void
addButtons(array $buttons)
Add custom buttons to the table header.
at line 223
void
addCardModalButtons(array $buttons)
Add buttons to the card modal view.
at line 234
void
showCounter(bool $bool)
Toggle the record counter display.
at line 239
showCardsOnMobile(bool $bool = true)
No description
at line 244
useCards(bool $bool = true)
No description
at line 258
void
openMobileCardDetails(mixed $rowId)
Open the mobile details modal for a specific row.
at line 269
void
closeMobileCardDetails()
Close the mobile details modal.
at line 281
void
setTitle(string $title)
Set the table title.
at line 292
void
overrideTitleClasses(string $classes)
Override default title classes.
at line 303
void
setCustomHeader(string $html)
Set custom HTML content for the header.
at line 314
void
setComponentClasses(string $classes)
Set CSS classes for the main component wrapper.
at line 325
void
addTableClasses(string $classes)
Add CSS classes to the table element.
at line 336
void
setTableClasses(string $classes)
Set (overwrite) CSS classes for the table element.
at line 347
void
setStickyHeader()
Enable sticky header for the table.
at line 360
void
setModalsView(string $view)
Set the view for modals.
at line 371
void
setMostLeftView(string $view)
Set the view for the leftmost header area.
at line 382
void
setLessLeftView(string $view)
Set the view for the inner left header area.
at line 393
void
setMostRightView(string $view)
Set the view for the rightmost header area.
at line 404
void
setLessRightView(string $view)
Set the view for the inner right header area.
at line 415
void
setButtonVariant(string $variant)
Set the button variant style.
at line 428
void
showOptionsOnlyOnRowSelect(bool $value = true)
Configure options visibility based on row selection specific logic.
at line 441
void
setLayout(mixed $layout)
Set the main layout view.
at line 454
void
stripRows(bool $strip = true)
Enable or disable striped rows.
at line 464
string
getRowStripingClasses()
Get the CSS classes for row striping based on configuration.