forage v0.2.0 ForageWeb.ForageView
Helper functions for veiws that feature forage filters, pagination buttons or sort links.
Link to this section Summary
Functions
A filter that works on dates
Datepicker widget based on bootstrap calendar (heavy but gets the work done)
Displays a struct
Form group for horizontal forms
A filter that works on numbers
A link to the next page of search results. Returns the empty string if the next page doesn’t exist
A link to the previous page of search results. Returns the empty string if the previous page doesn’t exist
An already styled “pagination widget” containing a link to the next page and to the previous page of search results
Widget to select
Widget to select
A link to sort a list of database rows by a certain key
A filter that works on text
A filter that works on time
Link to this section Functions
A filter that works on dates.
It supports the following operators:
- Equal to
- Greater than
- Less than
- Greater than or equal to
- Less than or equal to
Examples
TODO
Datepicker widget based on bootstrap calendar (heavy but gets the work done)
Displays a struct
Form group for horizontal forms.
A filter that works on numbers.
It supports the following operators:
- Equal to
- Greater than
- Less than
- Greater than or equal to
- Less than or equal to
Examples
TODO
A link to the next page of search results. Returns the empty string if the next page doesn’t exist.
A link to the previous page of search results. Returns the empty string if the previous page doesn’t exist.
An already styled “pagination widget” containing a link to the next page and to the previous page of search results.
If either the previous page or the next page doesn’t exist, the respective link will be empty.
forage_search_form_for( Phoenix.HTML.FormData.t(), String.t(), Keyword.t(), (Phoenix.HTML.FormData.t() -> Phoenix.HTML.unsafe()) ) :: Phoenix.HTML.safe()
Widget to select …
Required options:
:path
(required) - the URL from which to request the data This function won’t be applied to values requested from the server after the initial render.:remote_field
(required) - The remote field on the other side of the association.:foreign_key
(optionsl) - The name of the foreign key (as a string or an atom). If this is not supplied it will default tofield_id
Widget to select …
Required options:
:path
(required) - the URL from which to request the data This function won’t be applied to values requested from the server after the initial render.:remote_field
(required) - The remote field on the other side of the association.:foreign_key
(optionsl) - The name of the foreign key (as a string or an atom). If this is not supplied it will default tofield_id
A link to sort a list of database rows by a certain key.
A filter that works on text.
It supports the following operators:
- Contains
- Equal
- Starts with
- Ends with
Examples
TODO
A filter that works on time.
It supports the following operators:
- Equal to
- Greater than
- Less than
- Greater than or equal to
- Less than or equal to
Examples
TODO