AshTable.Table (ash_table v0.2.0)
Generic sortable table component
Expects the following parameters as assigns:
id- necessary, as this is a stateful LiveView componentquery- An Ash Query or Resource modulesort(optional) - asort/0specifying the initial sort directionlimit- page sizeoffset- initial offset for paginationcolcolumns- attribute - the field this column displays, used to sort
- apply_sort - optional arity 2 function which takes query, direction as args
caption(optional)read_options- an options keyword list of options that will be passed intoAsh.readwhen data is fetched. This allows for specifying:tenant,:actor, etc.
Summary
Types
Link to this type
sort()
@type sort() :: {atom() | nil, :asc | :desc}
Functions
Link to this function
noreply(term)
Link to this function
ok(term)
Link to this function
render(assigns)
Callback implementation for Phoenix.LiveComponent.render/1.
Link to this function
sort_class(column_key, arg)
Link to this function
sort_direction(column_key, sort)
Link to this function
sort_normalized_keys(keys)
Link to this function