Commit 85cc9c91 authored by Joachim Schunk's avatar Joachim Schunk

add multiline?-option to field

parent a99b4676
......@@ -4,10 +4,12 @@
(defn field
([content]
[field {} content])
([{:keys [field-class label grouped? addons? expanded? narrow? help]} & content]
([{:keys [field-class label grouped? multiline? addons? expanded? narrow? help]} & content]
[:div.field {:class (str field-class
(when grouped?
" is-grouped")
(if multiline?
" is-grouped is-grouped-multiline"
" is-grouped"))
(when addons?
" has-addons")
(when expanded?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment