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 | ||
| string|null | $componentSizeOverride | ||
| array | $themeConfig | ||
| array | $yat_card_modal_buttons | ||
| bool | $mobileDetailsModalOpen | ||
| array | $mobileDetailsRow | ||
| bool | $showOptionsOnlyOnRowSelect | ||
| mixed | $layout | ||
| bool | $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.
Override the size of all beartropy-ui components in the table header.
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.
Enable or disable card view on mobile devices.
Enable or disable card layout for all devices.
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 60
void
setTheme(string $theme)
Set the table theme.
at line 71
array
getThemeConfig(string $theme)
Get configuration for a specific theme from presets.
at line 83
void
setBulkThemeOverride(string|null $theme)
Override the bulk actions theme.
at line 93
void
setButtonThemeOverride(string|null $theme)
Override the button theme.
at line 103
void
setInputThemeOverride(string|null $theme)
Override specific theme settings.
at line 113
void
setComponentSize(string|null $size)
Override the size of all beartropy-ui components in the table header.
at line 123
void
mountView()
Initialize view settings.
at line 135
void
gatherEnvData()
Detect environmental data (e.g. mobile device).
at line 148
void
addButtons(array $buttons)
Add custom buttons to the table header.
at line 160
void
addCardModalButtons(array $buttons)
Add buttons to the card modal view.
at line 170
void
showCounter(bool $bool)
Toggle the record counter display.
at line 180
void
showCardsOnMobile(bool $bool = true)
Enable or disable card view on mobile devices.
at line 190
void
useCards(bool $bool = true)
Enable or disable card layout for all devices.
at line 205
void
openMobileCardDetails(mixed $rowId)
Open the mobile details modal for a specific row.
at line 216
void
closeMobileCardDetails()
Close the mobile details modal.
at line 228
void
setTitle(string $title)
Set the table title.
at line 239
void
overrideTitleClasses(string $classes)
Override default title classes.
at line 250
void
setCustomHeader(string $html)
Set custom HTML content for the header.
at line 260
void
setComponentClasses(string $classes)
Set CSS classes for the main component wrapper.
at line 270
void
addTableClasses(string $classes)
Add CSS classes to the table element.
at line 280
void
setTableClasses(string $classes)
Set (overwrite) CSS classes for the table element.
at line 291
void
setStickyHeader()
Enable sticky header for the table.
at line 301
void
setModalsView(string $view)
Set the view for modals.
at line 311
void
setMostLeftView(string $view)
Set the view for the leftmost header area.
at line 321
void
setLessLeftView(string $view)
Set the view for the inner left header area.
at line 331
void
setMostRightView(string $view)
Set the view for the rightmost header area.
at line 341
void
setLessRightView(string $view)
Set the view for the inner right header area.
at line 351
void
setButtonVariant(string $variant)
Set the button variant style.
at line 363
void
showOptionsOnlyOnRowSelect(bool $value = true)
Configure options visibility based on row selection specific logic.
at line 376
void
setLayout(mixed $layout)
Set the main layout view.
at line 388
void
stripRows(bool $strip = true)
Enable or disable striped rows.
at line 398
string
getRowStripingClasses()
Get the CSS classes for row striping based on configuration.