AshUi.RenderTree.Path (ash_ui v0.1.0)

Copy Markdown View Source

Render-tree node addressing: keyed nodes use {:key, key} segments, unkeyed nodes match positionally with {:index, index} segments. These paths are the stable addresses the patch ops target and the id scheme the HTML renderer and binding collector already emit.

Summary

Types

path()

@type path() :: [term()]

Functions

child_path(parent_path, node, index)

@spec child_path(path(), term(), non_neg_integer()) :: path()

node_path_segment(node, index)

@spec node_path_segment(term(), non_neg_integer()) :: term()

root_path(nodes)

@spec root_path(term()) :: path()