use html dropdown value fields

This commit is contained in:
chris (daiyi) 2017-08-04 18:48:01 +02:00
parent 2dde68256c
commit e70c86cbe7
1 changed files with 4 additions and 5 deletions

View File

@ -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