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
133
Issues
133
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
1b3caa7a
Commit
1b3caa7a
authored
Apr 12, 2019
by
James Laver
Committed by
Alexandre Delanoë
Apr 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add background term styling to G.C.Annotated.AnnotatedField
parent
46388a63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
AnnotatedField.purs
src/Gargantext/Components/Annotated/AnnotatedField.purs
+9
-3
No files found.
src/Gargantext/Components/Annotated/AnnotatedField.purs
View file @
1b3caa7a
...
...
@@ -24,10 +24,11 @@ import Effect.Class.Console (log)
import Effect.Unsafe (unsafePerformEffect)
import React (ReactElement, ReactClass, createElement)
import React.DOM (p, span, text)
import React.DOM.Props (className, onContextMenu)
import React.DOM.Props as Props
import React.DOM.Props (className, onContextMenu, style)
import Thermite (PerformAction, Render, createReactSpec, simpleSpec, writeState)
import Gargantext.Types (TermList)
import Gargantext.Components.NgramsTable (NgramsTable(..), highlightNgrams
, termStyle
)
import Gargantext.Types (TermList
(..)
)
import Gargantext.Components.NgramsTable (NgramsTable(..), highlightNgrams)
import Gargantext.Utils.React (WithChildren)
import Gargantext.Utils.Selection (getSelection, toString)
import React as React
...
...
@@ -122,6 +123,11 @@ contextMenuHandler d e =
y <- pageY e
pure $ PageOffset { x, y }
termStyle :: TermList -> Props.Props
termStyle GraphTerm = style {backgroundColor: "green"}
termStyle StopTerm = style {backgroundColor: "red", textDecoration : "line-through"}
termStyle CandidateTerm = style {backgroundColor: "black"}
_runs :: Lens' State (List Run)
_runs = lens (\a -> a.runs) (\a r -> a { runs = r })
...
...
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