View Source Bonfire.UI.Common.LiveHandlers (Bonfire v0.9.10-classic-beta.169)

usage examples:

phx-submit="Bonfire.Posts:post" will be routed to Bonfire.Posts.LiveHandler.handle_event("post", ...

PubSub.broadcast(feed_id, {{Bonfire.Social.Feeds, :new_activity}, activity}) will be routed to Bonfire.Social.Feeds.LiveHandler.handle_info({:new_activity, activity}, ...

href="?Bonfire.Social.Feeds[after]=<%= e(@page_info, :end_cursor, nil) %>" will be routed to Bonfire.Social.Feeds.LiveHandler.handle_params(%{"after" => cursor_after} ...

Summary

Functions

Link to this function

assign_attrs(socket, attrs)

View Source
Link to this function

handle_event(action, attrs, socket, source_module \\ nil, fun \\ nil)

View Source
Link to this function

handle_info(blob, socket, source_module \\ nil, fun \\ nil)

View Source
Link to this function

handle_params(params, uri, socket, source_module \\ nil, fun \\ nil)

View Source
Link to this function

handle_progress(type, entry, socket, source_module, target_fn)

View Source
Link to this function

mod_delegate(mod, fun, args, socket, no_delegation_fn \\ &no_live_handler/2)

View Source
Link to this macro

sigil_p(route, extra)

View Source (macro)