Cinder.PageSize (Cinder v0.12.1)

Copy Markdown View Source

Page size configuration for Cinder table components.

Configuration

Set a global default page size in your application configuration:

# config/config.exs
config :cinder, default_page_size: 50

# Or with configurable options (shows dropdown selector)
config :cinder, default_page_size: [default: 25, options: [10, 25, 50, 100]]

Individual tables can override the global default:

<Cinder.collection page_size={100} ...>
</Cinder.collection>

Summary

Functions

Gets the raw default page size from application configuration.

Parses a page size value into a standardized config map.

Functions

get_default_page_size()

Gets the raw default page size from application configuration.

Returns the configured value or 25 if not set.

parse(value)

Parses a page size value into a standardized config map.

Accepts an integer, keyword list with :default and :options keys, or nil to use the global default.