SelectoComponents.Views.System behaviour (selecto_components v0.4.5)
Formal contract for pluggable SelectoComponents view systems.
A view system is the module referenced in the views configuration tuple:
{:graph, SelectoComponents.Views.Graph, "Graph View", %{}}Any module used in that position can implement this behavior directly, or
use SelectoComponents.Views.System to wire callbacks to separate modules.
Additional view-local modules (for example drill-down handlers, option normalizers, pagination/query helpers) are optional implementation details and are not part of this behavior contract.
This enables external packages (for example selecto_components_workflow)
to integrate without relying on naming conventions like #{module}.Process.
Link to this section Summary
Link to this section Types
Link to this type
columns_map()
@type columns_map() :: map()
Link to this type
filtered()
@type filtered() :: term()
Link to this type
options()
@type options() :: map()
Link to this type
params()
@type params() :: map()
Link to this type
selecto()
@type selecto() :: term()
Link to this type
view_meta()
@type view_meta() :: map()
Link to this type
view_set()
@type view_set() :: map()
Link to this section Callbacks
Link to this callback
form_component()
@callback form_component() :: module()
Link to this callback
initial_state(selecto, options)
Link to this callback
param_to_state(params, options)
Link to this callback
result_component()
@callback result_component() :: module()
Link to this callback