BackpexWeb (Backpex v0.19.0)

Copy Markdown View Source

The entrypoint for defining the web interface of Backpex.

Example

use BackpexWeb, :html

Summary

Functions

When used, dispatch to the appropriate function.

Includes all globally available field functions and helpers.

Includes all globally available HTML functions and helpers.

Includes all globally available item action functions and helpers.

Includes the functions and helpers available inside a Backpex.LiveResource.

Functions

__using__(which)

(macro)

When used, dispatch to the appropriate function.

field()

Includes all globally available field functions and helpers.

filter()

html()

Includes all globally available HTML functions and helpers.

item_action()

Includes all globally available item action functions and helpers.

live_resource()

Includes the functions and helpers available inside a Backpex.LiveResource.

Unlike html/0, this only imports Phoenix.Component instead of use-ing it. A LiveResource only needs the ~H sigil (for the injected render_resource_slot/3 clauses and for user-defined render functions), and import is enough for that.

If a LiveResource needs to declare its own function components with attr/slot, it should additionally use MyAppWeb, :html (or use Phoenix.Component).

metric()