SelectoComponents.Views.Runtime (selecto_components v0.3.19)

Runtime helpers for executing configured view systems.

View modules are expected to implement SelectoComponents.Views.System.

Link to this section Summary

Link to this section Types

@type view_id() :: atom()
Link to this type

view_tuple()

@type view_tuple() :: {view_id(), module(), String.t(), map()}

Link to this section Functions

Link to this function

form_component(arg)

@spec form_component(view_tuple()) :: module()
Link to this function

initial_state(arg, selecto)

@spec initial_state(view_tuple(), term()) :: map()
Link to this function

param_to_state(arg, params)

@spec param_to_state(view_tuple(), map()) :: map()
Link to this function

result_component(arg)

@spec result_component(view_tuple()) :: module()
Link to this function

view(arg, params, columns_map, filtered, selecto)

@spec view(view_tuple(), map(), map(), term(), term()) :: {map(), map()}