View Source Bonfire.UI.Common.SmartInput.LiveHandler (Bonfire v0.9.11-social-beta.6)

Summary

Functions

active_smart_input_component(smart_input_component, create_object_type)

active_smart_input_components(smart_input_component, create_object_type)

activity_type_or_reply(assigns)

all_smart_input_components()

assign_open(context, assigns)

Open the composer by setting assigns

close_smart_input(js \\ %JS{})

confirm_close_smart_input(js \\ %JS{}, reusable_modal_id)

handle_event(action, params, socket)

max_length()

maximize(js \\ %JS{})

maybe_from_json(json)

maybe_from_json_string(json)

minimize(js \\ %JS{})

open(js \\ %JS{}, opts \\ nil)

open_type(js \\ %JS{}, component, create_object_type, opts \\ nil)

open_with_text_suggestion(text, set_assigns, socket_or_context)

replace_input_next_time(socket_or_context)

reply_to_param(arg1)

reset_input(socket)

set(context, assigns)

Set assigns in the smart input from anywhere in the app (whether using a live component or sticky live view)

set_smart_input_text(socket_or_context, text \\ "\n")

show_main(js \\ %JS{}, opts \\ nil)

sigil_p(route, extra)

(macro)

smart_input_name(component)

switch_smart_input_type(type, js \\ %JS{})

toggle_expanded(js \\ %JS{}, target, btn, class)