Liking cljdoc? Tell your friends :D

reacl-c.test-util.core-testing


contains-like?clj/s

(contains-like? item sub-item & options)

Returns if item, or any item 'below' it, is like? sub-item in the given state of item. Options can be:

  • :state: specifies the state of item used to resolve dynamic items in it. It defaults to nil,

  • :sub-item-state: if specified the sub item only matches if it occurs in item with that state initially.

Returns if `item`, or any item 'below' it, is [[like?]] `sub-item`
in the given state of `item`. Options can be:

- `:state`: specifies the state of `item` used to resolve dynamic
items in it. It defaults to `nil`,

- `:sub-item-state`: if specified the sub item only matches if it
occurs in `item` with that state initially.
sourceraw docstring

contains?clj/s

(contains? item sub-item & options)

Returns if item, or any item 'below' it, is equal to sub-item in the given state of item. Options can be:

  • :state: specifies the state of item used to resolve dynamic items in it. It defaults to nil,

  • :sub-item-state: if specified the sub item only matches if it occurs in item with that state initially.

Returns if `item`, or any item 'below' it, is equal to `sub-item`
in the given state of `item`.  Options can be:

- `:state`: specifies the state of `item` used to resolve dynamic
items in it. It defaults to `nil`,

- `:sub-item-state`: if specified the sub item only matches if it
occurs in `item` with that state initially.
sourceraw docstring

finalizeclj/s

(finalize item state)

Returns what happens when the given item is finalized in the given state, which happens when it is now longer used in an item tree. Returns a [[core/return]] value.

Returns what happens when the given item is finalized in the given
state, which happens when it is now longer used in an item
tree. Returns a [[core/return]] value.
sourceraw docstring

handle-messageclj/s

(handle-message item state msg)

Returns what happens when the given message would be sent to that item in the given state. Returns a [[core/return]] value or nil, if the message would not be handled at all.

Returns what happens when the given message would be sent to that
item in the given state. Returns a [[core/return]] value or nil, if
the message would not be handled at all.
sourceraw docstring

initclj/s

(init item state)

Returns what happens when the given item is initialized in the given state, which happens when it is first used in an item tree, or if it is updated to a new state. Returns a [[core/return]] value.

Returns what happens when the given item is initialized in the
given state, which happens when it is first used in an item tree, or
if it is updated to a new state. Returns a [[core/return]] value.
sourceraw docstring

like?clj/s

(like? item sub-item)

Returns if sub-item is like item, meaning:

  • if both are a strings, then sub-item is a substring in item,
  • if both are dom elements, then sub-item is the same type of dom element, but may contain less attributes or children,
  • if both have children, then every child of sub-item is like? a child in item, and in the same order.
Returns if `sub-item` is like `item`, meaning:

- if both are a strings, then `sub-item` is a substring in `item`,
- if both are dom elements, then `sub-item` is the same type of dom element, but may contain less attributes or children,
- if both have children, then every child of `sub-item` is `like?` a child in `item`, and in the same order.
sourceraw docstring

renderclj/s

(render item state)

Returns how an item looks like in the given state. Returns a list of only dom elements and strings.

Returns how an item looks like in the given state. Returns a list
of only dom elements and strings.
sourceraw docstring

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

× close