diff options
author | scgilardi <scgilardi@gmail.com> | 2009-03-13 06:23:48 +0000 |
---|---|---|
committer | scgilardi <scgilardi@gmail.com> | 2009-03-13 06:23:48 +0000 |
commit | dba39786323602b548faad6088a5f2ef72b3430d (patch) | |
tree | 0d4025cbe5d8cc8d941d0ffe63a8baf73cba0da0 /src/clojure/contrib/miglayout.clj | |
parent | 08cfc276dfc60d9a45b4dff7581597dd23682bfb (diff) |
miglayout: add support for set as a group of constraints that can be named, bound, etc. update tests with more examples and some helper functions
Diffstat (limited to 'src/clojure/contrib/miglayout.clj')
-rw-r--r-- | src/clojure/contrib/miglayout.clj | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clojure/contrib/miglayout.clj b/src/clojure/contrib/miglayout.clj index 13ed92ef..e841a450 100644 --- a/src/clojure/contrib/miglayout.clj +++ b/src/clojure/contrib/miglayout.clj @@ -42,14 +42,16 @@ :column or :row. Constraints for a keyword item affect the entire layout. - Constraint: string, keyword, vector, or map + Constraint: string, keyword, vector, map, or set - A string specifies one or more constraints each with zero or more arguments. - A keyword specifies a single constraint without arguments - A vector specifies a single constraint with one or more arguments - A map specifies one or more constraints as keys, each mapped to a - single argument" + single argument + - A set groups two or more constraints, each a string, keyword, + vector, map, or set" [#^Container container & args] (let [item-constraints (apply parse-item-constraints args) {:keys [keywords components]} item-constraints |