Update colors and typographies inside components

This commit is contained in:
Andrés Moya 2020-10-02 14:58:49 +02:00 committed by Alonso Torres
parent b97bbd10f0
commit 272d023f3c
3 changed files with 116 additions and 154 deletions

View file

@ -20,9 +20,10 @@
(update data :pages-index #(d/mapm f %)))
(defn select-objects
"Get a list of all objects in a page that satisfy a condition"
[f page]
(filter f (vals (get page :objects))))
"Get a list of all objects in a container (a page or a component) that
satisfy a condition"
[f container]
(filter f (vals (get container :objects))))
(defn update-object-list
"Update multiple objects in a page at once"