Skip to content

Commit

Permalink
feat(pagination): address changes & fix storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
Leotheluck authored and dpellier committed Feb 2, 2024
1 parent bab3bdd commit ec84674
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
|Name | Type | Required | Default | Description|
|---|---|:---:|---|---|
|**`current`** | _number_ | ✴️ | | Its corresponding current page.|
|**`defaultItemsPerPage`** | `ODS_PAGINATION_PER_PAGE` | ✴️ | | Default items per page.|
|**`disabled`** | _boolean_ | ✴️ | | indicates if the pagination is entirely disabled.it means no interactions (hover, click, focus, etc)|
|**`labelTooltipNext`** | _string_ | ✴️ | | The label of the tooltip on the arrow next|
|**`labelTooltipPrevious`** | _string_ | ✴️ | | The label of the tooltip on the arrow previous|
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ODS_PAGINATION_PER_PAGE_OPTIONS } from '@ovhcloud/ods-components';
import { defineCustomElement } from '@ovhcloud/ods-components/dist/components/osds-pagination';
import { html } from 'lit-html';
import { unsafeHTML } from 'lit-html/directives/unsafe-html';
Expand Down Expand Up @@ -29,6 +30,10 @@ const totalItemsParam = {
category: 'General',
defaultValue: 60,
},
defaultItemsPerPage: {
category: 'General',
defaultValue: ODS_PAGINATION_PER_PAGE_OPTIONS[1],
},
beforeTotalItems: {
category: 'Slots',
defaultValue: 'of '
Expand Down

0 comments on commit ec84674

Please sign in to comment.