Alkemist v1.0.1-rc AlkemistView

Link to this section Summary

Functions

Returns true whenever the list of templates changes in the filesystem

The resource name, as an atom, for this view

Returns the template root alongside all templates

Returns the path for a controller action

Renders a batch action item

Creates a collection action link above the index table

Create a link to the export action

Creates the header cell for the index table Accepts the conn, struct and actual column created by Alkemist.Assign.map_column

Boolean indicator if a column is sortable

Creates an action link to a member action

Renders the given template locally

Creates a scope link

Callback invoked when no template is found. By default it raises but can be customized to render a particular template

Link to this section Functions

Link to this function __phoenix_recompile__?()

Returns true whenever the list of templates changes in the filesystem.

The resource name, as an atom, for this view

Link to this function __templates__()

Returns the template root alongside all templates.

Link to this function action_path(struct, params)

Returns the path for a controller action

Link to this function batch_action_item(conn, struct, batch_action)

Renders a batch action item

Link to this function collection_action(conn, action, resource)

Creates a collection action link above the index table

Link to this function export_action(conn, struct, assigns \\ [])

Create a link to the export action

Link to this function header_cell(conn, struct, arg)

Creates the header cell for the index table Accepts the conn, struct and actual column created by Alkemist.Assign.map_column

Link to this function is_sortable?(arg)

Boolean indicator if a column is sortable

Examples:

iex> AlkemistView.is_sortable?({:col, nil, [sortable: true]}) true

iex> AlkemistView.is_sortable?({:col, nil, []}) false

Link to this function member_action(conn, action, resource)

Creates an action link to a member action

Link to this function render(template, assigns \\ %{})

Renders the given template locally.

Link to this function scope_link(conn, scope, struct)

Creates a scope link

Link to this function string_value(callback, row)
Link to this function template_not_found(template, assigns)
template_not_found(Phoenix.Template.name(), map()) :: no_return()

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.