-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
currently the panel-functions are 0-arity. To write reusable panels, there should be a way to pass parameters to them. Few suggestions:
1) pass the start! options to panels
(defn permissions-view [{:keys [permissions]}]
...)
(dev-tools/start!
{:state-atom re-frame.db/app-db
:permissions #{:a :b}
:panels-fn {:permissions {:label "Permissions" :fn permissions-view}}})2) like 1, but just one key, e.g. :data
(dev-tools/start!
{:state-atom re-frame.db/app-db
:data {:permissions #{:a :b}}
:panels-fn {:permissions {:label "Permissions" :fn permissions-view}}})3) something else
Metadata
Metadata
Assignees
Labels
No labels