View Source TestWeb.UserFormattedTable behaviour (Exzeitable v0.6.0)

User table

Link to this section Summary

Functions

Convenience helper so LiveView doesn't have to be called directly

Typing into the search box... searches. Crazy, right?

Refresh periodically grabs new records from the database

Initial setup on page load

Callback implementation for Phoenix.LiveView.render/1.

Link to this section Types

Link to this section Callbacks

@callback render(map()) :: {:ok, iolist()}

Link to this section Functions

Convenience helper so LiveView doesn't have to be called directly

example

Example

<%= YourAppWeb.Live.Site.live_table(@conn, query: @query) %>
Link to this function

do_search(query, search)

View Source
@spec do_search(Ecto.Query.t(), String.t()) :: Ecto.Query.t()
Link to this function

handle_event(binary, arg2, socket)

View Source
@spec handle_event(String.t(), map(), socket()) :: {:noreply, socket()}

Typing into the search box... searches. Crazy, right?

Link to this function

handle_info(atom, socket)

View Source

Refresh periodically grabs new records from the database

Link to this function

live_table(conn, opts \\ [])

View Source
@spec live_table(
  Plug.Conn.t(),
  keyword()
) :: {:safe, iolist()}
Link to this function

mount(arg1, assigns, socket)

View Source
@spec mount(:not_mounted_at_router | map(), map(), socket()) :: {:ok, socket()}

Initial setup on page load

Link to this function

name_backwards(socket, entry)

View Source

Callback implementation for Phoenix.LiveView.render/1.