File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change 131131; ; this approach may be not ideal for very large list choices.
132132(defn selection-list
133133 " Produce a list box with items arranged vertically"
134- [& {:keys [choices model on-change id-fn label-fn multi-select? as-exclusions? required?
135- width height max-height disabled? hide-border? item-renderer show-only-button?
136- class style attr parts src debug-as pre-theme theme]
137- :or {multi-select? true
138- as-exclusions? false
139- required? false
140- disabled? false
141- hide-border? false
142- show-only-button? false
143- id-fn :id
144- label-fn :label }
134+ [& {:keys [pre-theme theme]
145135 :as args}]
146136 (let [theme (theme/comp pre-theme theme)]
147- (fn [& {:as args}]
137+ (fn [& {:keys [choices model on-change id-fn label-fn multi-select? as-exclusions? required?
138+ width height max-height disabled? hide-border? item-renderer show-only-button?
139+ class style attr parts src debug-as]
140+ :or {multi-select? true
141+ as-exclusions? false
142+ required? false
143+ disabled? false
144+ hide-border? false
145+ show-only-button? false
146+ id-fn :id
147+ label-fn :label }
148+ :as args}]
148149 (or
149150 (validate-args-macro args-desc args)
150151 (let [choices (deref-or-value choices)
You can’t perform that action at this time.
0 commit comments