File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
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 part. Provides intelligent positioning." }
47
+ :notes " Wraps the :body and :body-header parts. Provides intelligent positioning." }
48
+ {:name :body-header
49
+ :impl " user-defined"
50
+ :level 2
51
+ :notes " Shown when the dropdown is open." }
48
52
{:name :body
49
53
:impl " user-defined"
50
54
:level 2
104
108
" Appears either above or below the :anchor, "
105
109
" depending on available screen-space. When a function, "
106
110
" :body is passed the same keyword arguments as :anchor." )}
111
+ {:name :body-header
112
+ :type " part"
113
+ :validate-fn part?
114
+ :description (str " Appears at the top of the :body part." )}
107
115
{:name :disabled?
108
116
:required false
109
117
:type " boolean | r/atom" }
280
288
anchor-height anchor-width
281
289
model
282
290
label placeholder
283
- anchor backdrop body indicator
291
+ anchor backdrop body body-header indicator
284
292
parts theme main-theme theme-vars base-theme
285
293
width]
286
294
:or {placeholder " Select an item"
357
365
:parts parts
358
366
:state state
359
367
:theme theme}
368
+ [u/part body-header part-props nil ]
360
369
[u/part body part-props]])]})])))))
361
370
362
371
(defn- move-to-new-choice
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
538
- choice
537
+ label body-header choice
539
538
empty-means-full?
540
539
parts theme main-theme theme-vars base-theme]
541
540
:or {placeholder " Select an item..."
586
585
(on-reset (deref-or-value model)
587
586
(deref-or-value expanded-groups))))}])]})])
588
587
:width width
588
+ :body-header body-header
589
589
:body [tree-select
590
590
(themed ::dropdown-body
591
591
{:choices choices
You can’t perform that action at this time.
0 commit comments