A2UICore.Resolution.Binding (A2UICore v0.1.1)

Copy Markdown View Source

A resolved dynamic property: the value it currently holds and, when the component bound it to a data path, the absolute path a write goes to.

A literal, a function call and a binding that failed to resolve are read-only; a {"path": …} binding ({"@path": …} in v1.0) is writable.

iex> A2UICore.Resolution.Binding.writable?(%A2UICore.Resolution.Binding{value: "Ada", path: "/user/name"})
true
iex> A2UICore.Resolution.Binding.writable?(%A2UICore.Resolution.Binding{value: "Ada"})
false

Summary

Functions

Whether a write through the binding reaches the data model.

Types

t()

(since 0.1.0)
@type t() :: %A2UICore.Resolution.Binding{path: String.t() | nil, value: term()}

Functions

writable?(binding)

(since 0.1.0)
@spec writable?(t()) :: boolean()

Whether a write through the binding reaches the data model.