Pagination
Client-side pagination controls driven by a Datastar signal.
data pagination
Controls
pages
Current props
pages: ""
Usage
// init signal alongside the component
data.PaginationSignals("pg", 6)
data.Pagination(data.PaginationProps{
ID: "pg",
Total: 48,
PerPage: 6,
})All combinations (3)
Enum controls only · bool and text use defaults
Props
| Name | Type | Options | Default |
|---|---|---|---|
pages | enum | 4, 8, 12 | 8 |