DataTable.Components (data_table v0.1.0)
Summary
Functions
Attributes
state
(:atom
)on_toggle
(:string
) - Defaults tonil
.- Global attributes are accepted.
Generates a generic error message.
Attributes
id
(:any
) - Defaults tonil
.name
(:any
)label
(:string
) - Defaults tonil
.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 tonil
.options
(:list
) - the options to pass to Phoenix.HTML.Form.options_for_select/2.multiple
(:boolean
) - the multiple flag for select inputs. Defaults tofalse
.- 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 tonil
.- Global attributes are accepted.
Link to this function
error(assigns)
Generates a generic error message.
Slots
inner_block
(required)
Link to this function
input(assigns)
Attributes
id
(:any
) - Defaults tonil
.name
(:any
)label
(:string
) - Defaults tonil
.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 tonil
.options
(:list
) - the options to pass to Phoenix.HTML.Form.options_for_select/2.multiple
(:boolean
) - the multiple flag for select inputs. Defaults tofalse
.- Global attributes are accepted.
Slots
inner_block
Link to this function
label(assigns)
Renders a label.
Attributes
for
(:string
) - Defaults tonil
.
Slots
inner_block
(required)
Link to this function
table_container(assigns)
Slots
inner_block