Members
# static constant classNames
An object containing the classnames generated from the stylesheet made with emotion and using the style state of the store
Methods
# static exports.SelectPage() → {React.ReactElement}
The SelectPage component, contain a bunch of buttons to select the page to display : previous x, x, ,x , next.
If there are more than 5 pages, there is one or two cuts in order to have small amount of buttons.
Buttons being useless are disabled (current page, or previous when 1st page is selected for exemples).
jsx to be injected in the html.
React.ReactElement
# static handleClick(event)
Dispatch the selected page to the store.
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the event object from the click event. |
# static hiddenIfNeeded(event)
Check if the button should have the hidden class (previous and next button on small screen if there is lot of page ).
Parameters:
Name | Type | Description |
---|---|---|
event |
object | the event object from the click event. |
# static isDisabled(page)
Check if a button should have disabled attribute.
Parameters:
Name | Type | Description |
---|---|---|
page |
number | string | the event object from the click event. |