use html dropdown value fields
This commit is contained in:
parent
2dde68256c
commit
e70c86cbe7
|
@ -196,11 +196,10 @@
|
||||||
[:div.filter-control {:style {:margin-bottom 20}}
|
[:div.filter-control {:style {:margin-bottom 20}}
|
||||||
[:div.filter-control-input
|
[:div.filter-control-input
|
||||||
{:style {:margin-bottom 10}}
|
{:style {:margin-bottom 10}}
|
||||||
[:select {:value @filter-type :on-change (fn [e]
|
[:select {:value @filter-type
|
||||||
(reset! filter-type
|
:on-change #(reset! filter-type (keyword (.. % -target -value)))}
|
||||||
(keyword (str/replace (.. e -target -value) " " "-"))))}
|
[:option {:value "contains"} "contains"]
|
||||||
[:option :contains]
|
[:option {:value "slower-than"} "slower than"]]
|
||||||
[:option :slower-than]]
|
|
||||||
[search-input {:on-save save-query
|
[search-input {:on-save save-query
|
||||||
:on-change #(reset! filter-input (.. % -target -value))}]
|
:on-change #(reset! filter-input (.. % -target -value))}]
|
||||||
[:button.button.icon-button {:on-click save-query
|
[:button.button.icon-button {:on-click save-query
|
||||||
|
|
Loading…
Reference in New Issue