/
context_menus.cljs
27 lines (17 loc) · 1.05 KB
/
context_menus.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(ns chromex.ext.context-menus (:require-macros [chromex.ext.context-menus :refer [gen-wrap]])
(:require [chromex.core]))
; -- properties -------------------------------------------------------------------------------------------------------------
(defn action-menu-top-level-limit* [config]
(gen-wrap :property ::action-menu-top-level-limit config))
; -- functions --------------------------------------------------------------------------------------------------------------
(defn create* [config create-properties]
(gen-wrap :function ::create config create-properties))
(defn update* [config id update-properties]
(gen-wrap :function ::update config id update-properties))
(defn remove* [config menu-item-id]
(gen-wrap :function ::remove config menu-item-id))
(defn remove-all* [config]
(gen-wrap :function ::remove-all config))
; -- events -----------------------------------------------------------------------------------------------------------------
(defn on-clicked* [config channel & args]
(gen-wrap :event ::on-clicked config channel args))