Skip to content

Commit

Permalink
feature: configurable default pagination (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Apr 24, 2024
1 parent 9dd41ba commit d47ae61
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/3.0/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,3 +505,25 @@ Supported options with default values:
}
end
```
:::

:::option `pagination`
You can configure the default pagination settings key by key.

```ruby
config.pagination = {
type: :countless
}

# Or

config.pagination = -> do
{
type: :countless,
}
end
```

This will make all your application's tables countless keeping the size key / value as the default one.

Verify all possible options [here](resources#self_pagination).

0 comments on commit d47ae61

Please sign in to comment.