DateColumn
class DateColumn extends 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 | from Column | |
| string | $key | from Column | |
| string | $index | from Column | |
| $isVisible | from Column | ||
| $isHidden | from Column | ||
| $hideFromSelector | from Column | ||
| $customData | from Column | ||
| $classes | from Column | ||
| $th_classes | from Column | ||
| $th_wrapper_classes | from Column | ||
| $has_modified_data | from Column | ||
| $hide_on_mobile | from Column | ||
| $collapseOnMobile | from Column | ||
| $show_on_mobile | from Column | ||
| $cardTitle | from Column | ||
| $showOnCard | from Column | ||
| $isEditable | from Column | ||
| $editableType | from Column | ||
| $editableOptions | from Column | ||
| $editableCallback | from Column | ||
| $sortableCallback | from Column | ||
| $searchableCallback | from Column | ||
| $isSortable | from Column | ||
| $isSearchable | from Column | ||
| static protected | $existingKeys | from Column | |
| $updateField | from Column | ||
| bool | $isDate | ||
| string|null | $inputFormat | The expected input format of the date. |
|
| string | $outputFormat | The desired output format for the date. |
|
| string | $emptyValue | The value to display when the date is empty or null. |
Methods
Create a new DateColumn instance.
Set the column to collapse on mobile devices.
Mark the column as editable.
Set the expected input format of the date.
Set the desired output format for the date.
Set the value to display when the date is empty or null.
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 44
__construct(string $label, string|null $key = null)
Create a new DateColumn instance.
at line 56
static Column
make(string $label, string|null $key = null)
Static factory method.
in
Column at line 83
Column
collapseOnMobile(bool $bool = true)
Set the column to collapse on mobile devices.
in
Column at line 124
Column
searchable(bool|callable $callback = true)
Mark the column as searchable.
in
Column at line 143
Column
editable(string $type = 'input', array $options = [], callable|null $onUpdate = null)
Mark the column as editable.
in
Column at line 180
static
resetStaticKeys()
No description
in
Column at line 185
protected string
generateUniqueKey(string $label)
No description
at line 67
DateColumn
inputFormat(string $format)
Set the expected input format of the date.
at line 79
DateColumn
outputFormat(string $format)
Set the desired output format for the date.
at line 91
DateColumn
emptyValue(string $value)
Set the value to display when the date is empty or null.