(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.
(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.
(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.
(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.
(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.
(like? item sub-item)
Returns if sub-item
is like item
, meaning:
sub-item
is a substring in item
,sub-item
is the same type of dom element, but may contain less attributes or children,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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close