File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 44
44
{:name :body-wrapper
45
45
:impl " [box]"
46
46
:level 1
47
- :notes " Wraps the :body and :body-header parts . Provides intelligent positioning." }
47
+ :notes " Shown when the dropdown is open . Provides intelligent positioning." }
48
48
{:name :body-header
49
49
:impl " user-defined"
50
- :level 2
51
- :notes " Shown when the dropdown is open." }
50
+ :level 2 }
51
+ {:name :body-header
52
+ :impl " user-defined"
53
+ :level 2 }
52
54
{:name :body
53
55
:impl " user-defined"
54
- :level 2
55
- :notes " Shown when the dropdown is open." }]))
56
+ :level 2 }]))
56
57
57
58
(def dropdown-parts
58
59
(when include-args-desc?
112
113
:type " part"
113
114
:validate-fn part?
114
115
:description (str " Appears at the top of the :body part." )}
116
+ {:name :body-footer
117
+ :type " part"
118
+ :validate-fn part?
119
+ :description (str " Appears at the bottom of the :body part." )}
115
120
{:name :disabled?
116
121
:required false
117
122
:type " boolean | r/atom" }
288
293
anchor-height anchor-width
289
294
model
290
295
label placeholder
291
- anchor backdrop body body-header indicator
296
+ anchor backdrop body body-header body-footer indicator
292
297
parts theme main-theme theme-vars base-theme
293
298
width]
294
299
:or {placeholder " Select an item"
365
370
:parts parts
366
371
:state state
367
372
:theme theme}
368
- [u/part body-header part-props nil ]
369
- [u/part body part-props]])]})])))))
373
+ [u/part body-header part-props]
374
+ [u/part body part-props]
375
+ [u/part body-footer part-props]])]})])))))
370
376
371
377
(defn- move-to-new-choice
372
378
" In a vector of maps (where each map has an :id), return the id of the choice offset posititions away
Original file line number Diff line number Diff line change 534
534
label-fn alt-text-fn group-label-fn model placeholder id-fn field-label-fn
535
535
groups-first? initial-expanded-groups
536
536
show-reset-button? on-reset
537
- label body-header choice
537
+ label body-header body-footer choice
538
538
empty-means-full?
539
539
parts theme main-theme theme-vars base-theme]
540
540
:or {placeholder " Select an item..."
586
586
(deref-or-value expanded-groups))))}])]})])
587
587
:width width
588
588
:body-header body-header
589
+ :body-footer body-footer
589
590
:body [tree-select
590
591
(themed ::dropdown-body
591
592
{:choices choices
You can’t perform that action at this time.
0 commit comments