Note: When using a table with a column layout, the columns dropdown will not show the reorder button since columns cannot be reordered in this type of layout.
Reordering columns
To reorder columns:- Click the toggle column button in the table toolbar to open the column dropdown.
- Click the
up/down arrowbutton to enable reordering - Drag and drop your columns in the order you prefer.
Note: At least one column in your table must be toggleable() for Filament to display the toggle column button.
Reorderable Columns configurations
Advanced Tables offers multiple ways to customize Reorderable Columns. Unless specified otherwise, these options can be configured directly on theAdvancedTablesPlugin object inside your PanelProvider.
Disabling column reordering
Advanced Tables enables column reordering by default. You may disable this and use Filament’s native column toggling UI by passingfalse to the reorderableColumnsEnabled() method:
canReorderColumns() method in the class where you have added the AdvancedTables trait:
Always displaying the hidden label
By default, the enhanced toggle column dropdown will only display theHidden label when there are hidden columns. To always display the hidden label you may use the reorderableColumnsAlwaysDisplayHiddenLabel() method:
Display the toggle column dropdown as two columns
You may show the toggle column dropdown as two columns by using thecolumnToggleFormColumns() method on your table:
Configuring the icons
You may change any of the icons used for Reorderable Columns by using the following methods:->hiddenIcon()