Commit ddd234e0 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[list] chart select box styling

parent bf037a03
...@@ -64,12 +64,20 @@ ngramsViewCpt = R.hooksComponent "G.C.N.L.T.ngramsView" cpt ...@@ -64,12 +64,20 @@ ngramsViewCpt = R.hooksComponent "G.C.N.L.T.ngramsView" cpt
path = {corpusId, listId, tabType, limit: (Just 1000)} path = {corpusId, listId, tabType, limit: (Just 1000)}
charts CTabTerms (chartType /\ setChartType) = [ charts CTabTerms (chartType /\ setChartType) = [
getChartFunction chartType $ { session, path } H.div { className: "row" } [
, R2.select { on: { change: \e -> setChartType $ const $ fromMaybe Scatter $ chartTypeFromString $ R2.unsafeEventValue e } H.div { className: "col-md-3" } [
, defaultValue: show chartType } [
H.option { value: show Scatter } [ H.text $ show Scatter ] R2.select { className: "form-control"
, H.option { value: show ChartTree } [ H.text $ show ChartTree ] , on: { change: \e -> setChartType $ const $ fromMaybe Scatter $ chartTypeFromString $ R2.unsafeEventValue e }
, defaultValue: show chartType } [
H.option { value: show Histo } [ H.text $ show Histo ]
, H.option { value: show Scatter } [ H.text $ show Scatter ]
, H.option { value: show ChartBar } [ H.text $ show ChartBar ]
, H.option { value: show ChartTree } [ H.text $ show ChartTree ]
]
]
] ]
, getChartFunction chartType $ { session, path }
] ]
charts _ _ = [ chart mode ] charts _ _ = [ chart mode ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment