> ## Documentation Index
> Fetch the complete documentation index at: https://docs.advancedtables.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Quick Save

> Enable one-click saving of User Views with a customizable Quick Save button.

Advanced Tables offers a quick way for end-users to save User Views with the Quick Save button. Quick Save can be customized in a variety of ways to match the needs of your application.

## Quick Save configurations

Advanced Tables offers multiple ways to customize Quick Save. Unless specified otherwise, these options can be configured directly on the `AdvancedTablesPlugin` object inside your `PanelProvider`.

### Disabling Quick Save

You may disable Quick Save globally by passing `false` to the `quickSaveEnabled()` method:

```php theme={null}
AdvancedTablesPlugin::make()
    ->quickSaveEnabled(false)
```

You may also configure this per table by overriding the `quickSaveIsEnabled()` method on your List page:

```php theme={null}
class ListOrders extends ListRecords
{
    use AdvancedTables; 

    public static function quickSaveIsEnabled(): bool
    {
        return false;
    }
    ...
```

If you wish to just hide the Quick Save button for certain users, you can also use [policies](/v5/configuration/authorization).

You may also disable the [Favorites Bar](/v5/features/favorites-bar#disabling-the-favorites-bar) or the [View Manager](/v5/features/view-manager#disabling-the-view-manager) if needed.

### Changing the icon

You may change the icon of the Quick Save button using the `icon` argument of the `quickSaveInFavoritesBar()` method:

```php theme={null}
AdvancedTablesPlugin::make()
    ->quickSaveInFavoritesBar(icon: 'heroicon-o-bookmark')
```

> Note: The Quick Save icon only applies when the button is in the Favorites Bar.

### Changing the position in the Favorites Bar

By default, Quick Save is at the end of the Favorites Bar. You may position it at the start of the Favorites Bar using the `quickSaveInFavoritesBar()` method:

```php theme={null}
AdvancedTablesPlugin::make()
    ->quickSaveInFavoritesBar(position: 'start')
```

### Displaying in the table toolbar

By default, Quick Save is displayed in the Favorites Bar. You may display it in the toolbar by passing `false` to the `quickSaveInFavoritesBar()` method and adding the quickSaveInTable() method:

```php theme={null}
AdvancedTablesPlugin::make()
    ->quickSaveInFavoritesBar(false)
    ->quickSaveInTable()
```

### Displaying as a modal

By default, Quick Save will open it's form in a slideOver. You may display the form in a modal by passing `false` to the `quickSaveSlideOver()` method:

```php theme={null}
AdvancedTablesPlugin::make()
    ->quickSaveSlideOver(false)
```

### Customizing the trigger action

You can customize the Quick Save trigger button using `quickSaveTriggerAction()`, following the same pattern as Filament's [trigger action customization](https://filamentphp.com/docs/5.x/tables/filters/overview#customizing-the-filters-trigger-action):

```php theme={null}
use Filament\Actions\Action;
use Filament\Support\Icons\Heroicon;

AdvancedTablesPlugin::make()
    ->quickSaveTriggerAction(function (Action $action) {
        return $action
            ->button()
            ->label('Save')
            ->icon(Heroicon::OutlinedStar)
            ->color('primary');
    })
```
