View Source ExTeal.Fields.Array (ExTeal v0.27.8)

The Array field may be used to represent an Ecto array.

Summary

Functions

Enable a draggable ui for the field, allowing a user to reorder the items in the array

Callback implementation for ExTeal.Field.filterable_as/0.

Hide the 'create button' in the user interface

Put the 'add item' at the bottom of the list instead of the tops

Callback implementation for ExTeal.Field.make/2.

Set a maximum height of the list in pixels

Set a maximum number of items in the list

Set the placeholder for the 'add item' inputs

Callback implementation for ExTeal.Field.sanitize_as/0.

Functions

Link to this function

apply_options_for(field, model, conn, type)

View Source

Callback implementation for ExTeal.Field.apply_options_for/4.

Callback implementation for ExTeal.Field.default_sortable/0.

@spec draggable(ExTeal.Field.t()) :: ExTeal.Field.t()

Enable a draggable ui for the field, allowing a user to reorder the items in the array

Callback implementation for ExTeal.Field.filterable_as/0.

Link to this function

hide_create_button(field)

View Source
@spec hide_create_button(ExTeal.Field.t()) :: ExTeal.Field.t()

Hide the 'create button' in the user interface

@spec list_above(ExTeal.Field.t()) :: ExTeal.Field.t()

Put the 'add item' at the bottom of the list instead of the tops

Link to this function

make(name, label \\ nil)

View Source

Callback implementation for ExTeal.Field.make/2.

Link to this function

max_height(field, value)

View Source
@spec max_height(ExTeal.Field.t(), integer()) :: ExTeal.Field.t()

Set a maximum height of the list in pixels

@spec max_items(ExTeal.Field.t(), integer()) :: ExTeal.Field.t()

Set a maximum number of items in the list

Link to this function

placeholder(field, value)

View Source
@spec placeholder(ExTeal.Field.t(), String.t()) :: ExTeal.Field.t()

Set the placeholder for the 'add item' inputs

Callback implementation for ExTeal.Field.sanitize_as/0.

Link to this function

value_for(field, model, method)

View Source

Callback implementation for ExTeal.Field.value_for/3.