Liking cljdoc? Tell your friends :D

untangled.ui.menu


close-all-implcljs

(close-all-impl app-state-map)

Close all menus, application wide

Close all menus, application wide
sourceraw docstring

current-selectioncljs

(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.
sourceraw docstring

identcljs

(ident menu-id)
source

is-open?cljs

(is-open? menu)

Returns true if the menu is currently open.

Returns true if the menu is currently open.
sourceraw docstring

(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.
sourceraw docstring

(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.
sourceraw docstring

select-implcljs

(select-impl menu item-id)

Select an item in the menu

Select an item in the menu
sourceraw docstring

set-open-implcljs

(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.
sourceraw docstring

table-namecljs

source

ui-menucljs

(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.

...

sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close