Column
class Column
Traits
Properties
| string | $column_id | The unique identifier column for rows. |
from Columns |
| string | $custom_column_id | A custom column ID override. |
from Columns |
| Collection|null | $columns | Collection of defined columns. |
from Columns |
| bool | $show_column_toggle | Whether to show the column toggle dropdown. |
from Columns |
| bool | $column_toggle_dd_status | Status of the column toggle dropdown (open/closed). |
from Columns |
| bool | $hasMobileCollapsedColumns | Indicates if there are columns collapsed on mobile view. |
from Columns |
| array | $mobileCollapsedColumns | Array of columns that are collapsed on mobile. |
from Columns |
| string | $label | ||
| string | $key | ||
| string | $index | ||
| $isVisible | |||
| $isHidden | |||
| $hideFromSelector | |||
| $customData | |||
| $classes | |||
| $th_classes | |||
| $th_wrapper_classes | |||
| $has_modified_data | |||
| $hide_on_mobile | |||
| $collapseOnMobile | |||
| $show_on_mobile | |||
| $cardTitle | |||
| $showOnCard | |||
| $isEditable | |||
| $editableType | |||
| $editableOptions | |||
| $editableCallback | |||
| $sortableCallback | |||
| $searchableCallback | |||
| $isSortable | |||
| $isSearchable | |||
| static protected | $existingKeys | ||
| $updateField |
Methods
Create a new Column instance.
Set the column to collapse on mobile devices.
No description
Mark the column as searchable.
Mark the column as editable.
No description
No description
No description
Details
in
Columns at line 60
setColumns()
No description
in
Columns at line 99
getFreshColumns()
No description
in
Columns at line 107
showColumnToggle(bool $bool)
No description
in
Columns at line 112
setColumnID(string $column_id)
No description
in
Columns at line 225
Columns
popup(array $array = ["width" => 750, "height" => 800])
No description
at line 58
__construct(string $label, string|null $index = null)
Create a new Column instance.
at line 72
static Column
make(string $label, string|null $key = null)
static Constructor.
at line 83
Column
collapseOnMobile(bool $bool = true)
Set the column to collapse on mobile devices.
at line 89
Column
cardTitle(bool $bool = true)
No description
at line 95
Column
showOnCard(bool $bool = true)
No description
at line 107
Column
sortable(bool|callable $callback = true)
Mark the column as sortable.
at line 124
Column
searchable(bool|callable $callback = true)
Mark the column as searchable.
at line 143
Column
editable(string $type = 'input', array $options = [], callable|null $onUpdate = null)
Mark the column as editable.
at line 154
Column
setUpdateField($field)
No description
at line 160
Column
pushLeft()
No description
at line 170
Column
pushRight()
No description
at line 180
Column
centered()
No description
at line 190
static
resetStaticKeys()
No description
at line 195
protected string
generateUniqueKey(string $label)
No description