Skip to content

Commit

Permalink
added first and last page examples for long pagination (#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbarnes9 authored Jan 9, 2023
1 parent 4471703 commit 75b9668
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/components/pagination/examples/pagination-first/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% from "components/pagination/_macro.njk" import onsPagination %}

{{
onsPagination({
"previous": "Previous",
"next": "Next",
"hideRangeIndicator": true,
"pages": [
{
"url": "#page1",
"current": true
},
{
"url": "#page2"
},
{
"url": "#page3"
},
{
"url": "#page4"
}
]
})
}}
24 changes: 24 additions & 0 deletions src/components/pagination/examples/pagination-last/index.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% from "components/pagination/_macro.njk" import onsPagination %}

{{
onsPagination({
"previous": "Previous",
"next": "Next",
"hideRangeIndicator": true,
"pages": [
{
"url": "#page1"
},
{
"url": "#page2"
},
{
"url": "#page3"
},
{
"url": "#page4",
"current": true
}
]
})
}}

0 comments on commit 75b9668

Please sign in to comment.