Skip to content

Commit

Permalink
Polish demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Jan 17, 2024
1 parent f44d8da commit 7ee9132
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/re_demo/tree_select.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -152,17 +152,14 @@
:label-fn @label-fn
:group-label-fn @group-label-fn
:choice-disabled-fn @choice-disabled-fn
:open-to :chosen
:placeholder "Select a city..."
:parts {:body {:wrapper {:style {:color "red"}}}
:wrapper {:style {:margin-top "100px"}}}
:choices cities
:model model
:groups groups
:abbrev-fn (when @abbrev-fn? #(string/upper-case (first (:label %))))
:abbrev-threshold (when @abbrev-threshold? abbrev-threshold)
:on-change #(do (reset! model %1) (println %2))]
[gap :src (at) :size "5px"]
[gap :src (at) :size "96px"]
[h-box :src (at)
:height "45px"
:gap "5px"
Expand All @@ -189,7 +186,7 @@
:model disabled?
:on-change #(reset! disabled? %)]
[v-box :src (at)
:children [[box :src (at) :align :start :child [:code ":open-to"]]
:children [[box :src (at) :align :start :child [:code ":initial-expanded-groups"]]

[radio-button :src (at)
:label [:span [:code "nil"] ", ommitted - use the intial value of " [:code "groups"] "."]
Expand Down

0 comments on commit 7ee9132

Please sign in to comment.