(context! evt name-fn-coll)
(context! evt menu-atom name-fn-coll)
Update the context menu with a collection of [name function] pairs. When function is nil, consider the button as 'disabled' and do not allow any click.
When passed a keyword instead of [name function], a divider is inserted.
If a string is passed, convert it into a header.
["Menu header" [my-fn #(+ 1 2)] :divider [my-other-fn #(prn (str 1 2 3))]]
Update the context menu with a collection of [name function] pairs. When function is nil, consider the button as 'disabled' and do not allow any click. When passed a keyword instead of [name function], a divider is inserted. If a string is passed, convert it into a header. ["Menu header" [my-fn #(+ 1 2)] :divider [my-other-fn #(prn (str 1 2 3))]]
(context-menu)
(context-menu menu-atom)
The context menu component. Will use a default (and global) state ratom if none is provided.
The context menu component. Will use a default (and global) state ratom if none is provided.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close