View Source Bonfire.Classify.Web.LabelsLive (bonfire_umbrella v0.3.6-classic-beta.7)



  • id :string, required: true - Both the DOM ID and the ID to uniquely identify a LiveView. An :id is automatically generated when rendering root LiveViews but it is a required option when rendering a child LiveView.

  • container :tuple - An optional tuple for the HTML tag and DOM attributes to be used for the LiveView container. For example: {:li, style: "color: blue;"}. By default it uses the module definition container.

  • session :map - A map of binary keys with extra session data to be serialized and sent to the client. All session data currently in the connection is automatically available in LiveViews. You can use this option to provide extra data. Remember all session data is serialized and sent to the client, so you should always keep the data in the session to a minimum. For example, instead of storing a User struct, you should store the "user_id" and load the User when the LiveView mounts.

  • sticky :boolean - An optional flag to maintain the LiveView across live redirects, even if it is nested within another LiveView. If you are rendering the sticky view within your live layout, make sure that the sticky view itself does not use the same layout. You can do so by returning {:ok, socket, layout: false} from mount.

Link to this section Summary

Link to this section Functions

Link to this function

do_handle_params(params, url, socket)

View Source
Link to this function

handle_event(action, attrs, socket)

View Source

Callback implementation for Phoenix.LiveView.handle_event/3.

Link to this function

handle_params(params, uri, socket)

View Source

Callback implementation for Phoenix.LiveView.handle_params/3.

Link to this function

mount(params, session, socket)

View Source

Callback implementation for Phoenix.LiveView.mount/3.

Callback implementation for Phoenix.LiveView.render/1.

Link to this macro

sigil_p(route, extra)

View Source (macro)