DataTable.Components (data_table v0.1.0)

Summary

Functions

Attributes

  • state (:atom)
  • on_toggle (:string) - Defaults to nil.
  • Global attributes are accepted.

Generates a generic error message.

Attributes

  • id (:any) - Defaults to nil.
  • name (:any)
  • label (:string) - Defaults to nil.
  • value (:any)
  • type (:string) - Defaults to "text".
  • field (Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email].
  • errors (:list) - Defaults to [].
  • checked (:boolean) - the checked flag for checkbox inputs.
  • prompt (:string) - the prompt for select inputs. Defaults to nil.
  • options (:list) - the options to pass to Phoenix.HTML.Form.options_for_select/2.
  • multiple (:boolean) - the multiple flag for select inputs. Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a label.

Slots

  • inner_block

Functions

Link to this function

checkbox(assigns)

Attributes

  • state (:atom)
  • on_toggle (:string) - Defaults to nil.
  • Global attributes are accepted.

Generates a generic error message.

Slots

  • inner_block (required)

Attributes

  • id (:any) - Defaults to nil.
  • name (:any)
  • label (:string) - Defaults to nil.
  • value (:any)
  • type (:string) - Defaults to "text".
  • field (Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email].
  • errors (:list) - Defaults to [].
  • checked (:boolean) - the checked flag for checkbox inputs.
  • prompt (:string) - the prompt for select inputs. Defaults to nil.
  • options (:list) - the options to pass to Phoenix.HTML.Form.options_for_select/2.
  • multiple (:boolean) - the multiple flag for select inputs. Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Renders a label.

Attributes

  • for (:string) - Defaults to nil.

Slots

  • inner_block (required)
Link to this function

table_container(assigns)

Slots

  • inner_block