BlockBox.LayoutBlocks (blockbox v1.2.1)

Defines generator functions for all layout blocks.

Link to this section Summary

Link to this section Functions

Link to this function

actions_block(elements, opts \\ [])

@spec actions_block(
  list(),
  keyword()
) :: map()

Creates an actions block.

options

Options

Options are not included by default.

  • :block_id - String
Link to this function

context_block(elements, opts \\ [])

@spec context_block(
  list(),
  keyword()
) :: map()

Creates a context block.

options

Options

Options are not included by default.

  • :block_id - String
Link to this function

divider(opts \\ [])

@spec divider(keyword()) :: map()

Creates a divider block.

options

Options

Options are not included by default.

  • :block_id - String
Link to this function

file_block(external_id, source \\ "remote", opts \\ [])

Creates a file block.

options

Options

Options are not included by default.

  • :block_id - String
Link to this function

image_block(image_url, alt_text, opts \\ [])

@spec image_block(String.t(), String.t(), keyword()) :: map()

Creates an image block.

options

Options

Options are not included by default.

Link to this function

input(label, element, opts \\ [])

Creates an input block.

options

Options

Options are not included by default.

Link to this function

section(text, opts \\ [])

Creates a section block.

options

Options

Options are not included by default.