BlockBox.Views (blockbox v1.2.1)
Provides a generator for creating views.
Link to this section Summary
Link to this section Types
Link to this type
view_type()
@type view_type() :: :modal | :home
Link to this section Functions
Link to this function
build_view(type, title, blocks, opts \\ [])
@spec build_view( view_type(), String.t() | BlockBox.CompositionObjects.plain_text_object(), [map()], keyword() ) :: map()
Creates a view payload.
options
Options
Options are not included by default.
:close
-BlockBox.CompositionObjects.text_object/0
or String:submit
-BlockBox.CompositionObjects.text_object/0
or String:private_metadata
- String:callback_id
- String:clear_on_close
- boolean:notify_on_close
- boolean:external_id
- String