Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Grégoire Locqueville
purescript-gargantext
Commits
19157a5a
Commit
19157a5a
authored
Mar 22, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Table] Pagination 200 items enabled.
parent
8c648535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Table.purs
src/Gargantext/Components/Table.purs
+5
-2
No files found.
src/Gargantext/Components/Table.purs
View file @
19157a5a
...
@@ -286,7 +286,7 @@ pagination changePage tp cp
...
@@ -286,7 +286,7 @@ pagination changePage tp cp
changePageLink' :: Int -> ReactElement
changePageLink' :: Int -> ReactElement
changePageLink' i = changePageLink i (show i)
changePageLink' i = changePageLink i (show i)
data PageSizes = PS10 | PS20 | PS50 | PS100
data PageSizes = PS10 | PS20 | PS50 | PS100
| PS200
derive instance eqPageSizes :: Eq PageSizes
derive instance eqPageSizes :: Eq PageSizes
...
@@ -295,21 +295,24 @@ instance showPageSize :: Show PageSizes where
...
@@ -295,21 +295,24 @@ instance showPageSize :: Show PageSizes where
show PS20 = "20"
show PS20 = "20"
show PS50 = "50"
show PS50 = "50"
show PS100 = "100"
show PS100 = "100"
show PS200 = "200"
pageSizes2Int :: PageSizes -> Int
pageSizes2Int :: PageSizes -> Int
pageSizes2Int PS10 = 10
pageSizes2Int PS10 = 10
pageSizes2Int PS20 = 20
pageSizes2Int PS20 = 20
pageSizes2Int PS50 = 50
pageSizes2Int PS50 = 50
pageSizes2Int PS100 = 100
pageSizes2Int PS100 = 100
pageSizes2Int PS200 = 200
aryPS :: Array PageSizes
aryPS :: Array PageSizes
aryPS = [PS10, PS20, PS50, PS100]
aryPS = [PS10, PS20, PS50, PS100
, PS200
]
string2PageSize :: String -> PageSizes
string2PageSize :: String -> PageSizes
string2PageSize "10" = PS10
string2PageSize "10" = PS10
string2PageSize "20" = PS20
string2PageSize "20" = PS20
string2PageSize "50" = PS50
string2PageSize "50" = PS50
string2PageSize "100" = PS100
string2PageSize "100" = PS100
string2PageSize "200" = PS200
string2PageSize _ = PS10
string2PageSize _ = PS10
optps :: PageSizes -> PageSizes -> ReactElement
optps :: PageSizes -> PageSizes -> ReactElement
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment