(item-props-delete-mock tag item props)custom props delete function for mock item
(-> (item-props-delete-mock :mock/pane (item/item-create :mock/pane {:a 1 :b 2}) {:b 2}) :props) => {:a 1}
custom props delete function for mock item
(-> (item-props-delete-mock :mock/pane
(item/item-create :mock/pane {:a 1 :b 2})
{:b 2})
:props)
=> {:a 1}(item-props-set-mock tag item props)custom props update function for mock item
(-> (item-props-set-mock :mock/pane (item/item-create :mock/pane {:a 1}) {:b 2 :c 3}) :props) => {:a 1, :b 2, :c 3}
custom props update function for mock item
(-> (item-props-set-mock :mock/pane
(item/item-create :mock/pane {:a 1})
{:b 2 :c 3})
:props)
=> {:a 1, :b 2, :c 3}(item-set-list-mock tag item k vlist)custom props set list function for mock item
(-> (item-set-list-mock :mock/pane (item/item-create :mock/pane) :a [1 2 3 4]) :props) => {:a [1 2 3 4]}
custom props set list function for mock item
(-> (item-set-list-mock :mock/pane
(item/item-create :mock/pane)
:a [1 2 3 4])
:props)
=> {:a [1 2 3 4]}(mock-format {:keys [tag props] :as item})checks if object is a mock item
(-> (item/item-create :mock/label {:text "hello"}) (mock-format)) => [:mock/label "hello"]
(-> (item/item-create :mock/pane {:children ["a" "b" "c"]}) (mock-format)) => [:mock/pane "a" "b" "c"]
checks if object is a mock item
(-> (item/item-create :mock/label {:text "hello"})
(mock-format))
=> [:mock/label "hello"]
(-> (item/item-create :mock/pane {:children ["a" "b" "c"]})
(mock-format))
=> [:mock/pane "a" "b" "c"](mock? obj)checks if object is a mock item
(-> (item/item-create :mock/label) (mock?)) => true
checks if object is a mock item
(-> (item/item-create :mock/label)
(mock?))
=> truecljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |