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
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
gargantext
purescript-gargantext
Commits
2f64a17d
Commit
2f64a17d
authored
Nov 18, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NgramsTable] Buttons if selectAll
parent
06edcc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
NgramsTable.purs
src/Gargantext/Components/NgramsTable.purs
+5
-2
No files found.
src/Gargantext/Components/NgramsTable.purs
View file @
2f64a17d
...
...
@@ -134,6 +134,7 @@ tableContainer :: { path :: R.State PageParams
, ngramsSelection :: Set NgramsTerm
, ngramsTable :: NgramsTable
, tabNgramType :: CTabNgramType
, ngramsSelectAll :: Boolean
}
-> Record T.TableContainerProps -> R.Element
tableContainer { path: {searchQuery, termListFilter, termSizeFilter} /\ setPath
...
...
@@ -143,6 +144,7 @@ tableContainer { path: {searchQuery, termListFilter, termSizeFilter} /\ setPath
, ngramsSelection
, ngramsTable: ngramsTableCache
, tabNgramType
, ngramsSelectAll
} props =
H.div {className: "container-fluid"}
[ H.div {className: "jumbotron1"}
...
...
@@ -213,7 +215,7 @@ tableContainer { path: {searchQuery, termListFilter, termSizeFilter} /\ setPath
[ H.thead {className: "tableHeader"} [props.tableHead]
, H.tbody {} props.tableBody]]
, H.li {className: " list-group-item"}
,
if ngramsSelectAll then
H.li {className: " list-group-item"}
[ H.button { className: "btn btn-primary"
, on: {click: const $ setSelection GraphTerm }
}
...
...
@@ -223,6 +225,7 @@ tableContainer { path: {searchQuery, termListFilter, termSizeFilter} /\ setPath
}
[ H.text "Stop" ]
]
else H.div {}[]
]
]
]
...
...
@@ -348,7 +351,7 @@ loadedNgramsTableSpec = Thermite.simpleSpec performAction render
wrapColElts (T.ColumnName "Select") = const [R2.buff selected]
wrapColElts (T.ColumnName "Score") = (_ <> [H.text ("(" <> show scoreType <> ")")])
wrapColElts _ = identity
container = tableContainer {path, dispatch, ngramsParent, ngramsChildren, ngramsSelection, ngramsTable, tabNgramType}
container = tableContainer {path, dispatch, ngramsParent, ngramsChildren, ngramsSelection, ngramsTable, tabNgramType
, ngramsSelectAll
}
setParams f = setPath $ \p@{params: ps} -> p {params = f ps}
ngramsTable = applyNgramsTablePatch ngramsTablePatch initTable
orderWith =
...
...
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