DataTable.Source behaviour (DataTable v0.4.0)

Summary

Types

Link to this type

source_module()

@type source_module() :: module()
Link to this type

source_opts()

@type source_opts() :: any()

Callbacks

Link to this callback

filter_types({})

@callback filter_types({source :: source_module(), opts :: source_opts()}) :: any()
Link to this callback

filterable_fields({})

@callback filterable_fields({source :: source_module(), opts :: source_opts()}) :: any()
@callback key({source :: source_module(), opts :: source_opts()}) :: atom()
Link to this callback

query({}, query)

@callback query(
  {source :: source_module(), opts :: source_opts()},
  query :: DataTable.Source.Query.t()
) :: DataTable.Source.Result.t()

Functions

Link to this function

filter_types(arg)

Link to this function

filterable_fields(arg)

Link to this function

query(arg, query_params)