View Source LiveViewNativeTest.ViewTree (live_view_native v0.4.0-rc.0)

Summary

Functions

all(view_tree, selector)

all_attributes(view_tree, name)

all_values(arg)

attribute(node, key)

attrs(arg)

by_id!(view_tree, id)

child_nodes(arg)

component_id(view_tree)

component_ids(id, view_tree)

deep_merge(target, source)

Deep merges two maps.

drop_cids(rendered, cids)

ensure_loaded!()

extract_streams(source, streams)

filter(node, fun)

Filters nodes according to fun.

find_live_views(view_tree)

Find live views in the given markup tree.

find_static_views(view_tree)

Find static information in the given markup tree.

inner_markup!(view_tree, id)

inspect_markup(nodes)

maybe_one(view_tree, selector, type \\ :selector)

merge_diff(rendered, diff)

parent_id(view_tree, child_id)

parse(markup)

@spec parse(binary()) :: [
  {:comment, binary()}
  | {:pi | binary(), binary() | list(), list()}
  | {:doctype, binary(), binary(), binary()}
]

parse_sorted!(value)

Parses markup into Floki format with sorted attributes.

patch_id(id, view_tree, inner_markup, streams)

render_diff(rendered)

replace_root_container(container_markup, new_tag, attrs)

reverse_filter(node, fun)

Filters nodes and returns them in reverse order.

set_attr(el, name, val)

sigil_X(arg, list)

(macro)

sigil_x(term, list)

(macro)

t2h(template)

tag(node)

targets_from_node(tree, node)

targets_from_selector(tree, selector)

to_markup(view_tree)

to_text(view_tree)