Exzeitable v0.2.5 Exzeitable.Filter View Source

Filtering data

Link to this section Summary

Functions

All fields where a key value is true

All fields where a key value is false

Selects the page buttons we need for pagination

Gets the parent that the nested resource belongs to

Returns true if any of the fields have search enabled

Gets fields from options and merges it into the defaults

Link to this section Functions

Link to this function

fields_where(fields, attribute)

View Source
fields_where([keyword()], atom()) :: [keyword()]

All fields where a key value is true

Link to this function

fields_where_not(fields, attribute)

View Source
fields_where_not([keyword()], atom()) :: [keyword()]

All fields where a key value is false

Link to this function

filter_pages(pages, page)

View Source
filter_pages(integer(), integer()) :: [String.t() | Integer]

Selects the page buttons we need for pagination

Link to this function

parent_for(entry, map)

View Source
parent_for(map(), map()) :: map() | nil

Gets the parent that the nested resource belongs to

Link to this function

search_enabled?(map)

View Source
search_enabled?(map()) :: boolean()

Returns true if any of the fields have search enabled

Link to this function

set_fields(opts)

View Source
set_fields(keyword()) :: [any()]

Gets fields from options and merges it into the defaults