FrappeUIPhx.Ecto.StringList (frappe_ui_phx v0.3.1)

Copy Markdown View Source

Ecto.Type para listas de textos (tags, MultiSelect): persiste como {:array, :string} e aceita no cast uma lista ou uma string separada por vírgula. Descarta vazios e repetidos, preservando a ordem.

field :tags, FrappeUIPhx.Ecto.StringList

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Functions

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.