FilamentF
Filament13mo ago
Matthew

Issue with reordable table

    public static function table(Table $table): Table
    {
        return $table
            ->columns([
                TextColumn::make('name'),
                TextColumn::make('email'),
            ])
            ->filters([
                //
            ])
            ->actions([
                Impersonate::make(),
                Tables\Actions\EditAction::make(),
            ])
            ->bulkActions([
                Tables\Actions\BulkActionGroup::make([
                    Tables\Actions\DeleteBulkAction::make(),
                ]),
            ])
            ->reorderable('name', true);
    }
Solution
You click the button and the table starts "reorder mode". You can then reorder entries via the arrows at the beginning
Was this page helpful?