(close-all-impl app-state-map)
Close all menus, application wide
Close all menus, application wide
(current-selection menu)
Returns the ID of the currently selected item, or nil. Useful if you choose not to pay attention to the callback and instead have some other parent UI event (like submit) that needs to gather up the menu selection.
Returns the ID of the currently selected item, or nil. Useful if you choose not to pay attention to the callback and instead have some other parent UI event (like submit) that needs to gather up the menu selection.
(ident menu-id)
(is-open? menu)
Returns true if the menu is currently open.
Returns true if the menu is currently open.
(menu id label items)
Build a state tree for a menu to use in initial app state. The id of the menu should be globally unique.
Build a state tree for a menu to use in initial app state. The id of the menu should be globally unique.
(menu-item id label)
Build the state map that can be used in a menu as an item. The id
need only be unique within the menu.
Build the state map that can be used in a menu as an item. The `id` need only be unique within the menu.
(select-impl menu item-id)
Select an item in the menu
Select an item in the menu
(set-open-impl menu open?)
Set whether or not the menu with the given ID is open.
Set whether or not the menu with the given ID is open.
(ui-menu props
&
{:keys [style color onSelect] :or {style :normal color :primary}})
Render a Menu. You may use Om's computed facility to add an onSelect callback. The onSelect will be called with the id of the item selected. You may also just pass the callback as a named parameter for convenience.
...
Render a Menu. You may use Om's computed facility to add an onSelect callback. The onSelect will be called with the id of the item selected. You may also just pass the callback as a named parameter for convenience. ...
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close