ManageTypes
class ManageTypes extends YATBaseTable
Livewire component to manage Alert Types.
This component provides a table view of available alert types with editing capabilities. It uses the Beartropy Tables package for rendering and filtering.
Properties
| string | $tableName | The name of the table displayed |
|
| string | $model | The model class associated with the table |
|
| AlertType|null | $selectedType | The currently selected alert type for editing |
|
| bool | $openEditTypeModal | Whether the edit modal is open |
|
| string | $typeName | The name of the alert type being edited |
Methods
Configure the table settings.
Define the columns for the table.
Define the filters for the table.
Define validation rules.
Open the modal to edit an alert type.
Update the selected alert type.
Define the bulk actions available for the table.
Export all data to Excel.
Export filtered data to Excel.
Export selected rows to Excel.
Details
at line 46
void
settings()
Configure the table settings.
at line 60
array
columns()
Define the columns for the table.
at line 85
array
filters()
Define the filters for the table.
at line 95
protected array<string,string>
rules()
Define validation rules.
at line 109
void
editType(int|string $id)
Open the modal to edit an alert type.
at line 121
void
updateType()
Update the selected alert type.
at line 134
array
options()
Define the bulk actions available for the table.
at line 148
BinaryFileResponse
export_all()
Export all data to Excel.
at line 159
BinaryFileResponse
export_filtered()
Export filtered data to Excel.
at line 170
BinaryFileResponse|void
export_selected()
Export selected rows to Excel.