Backpex.Fields.URL (Backpex v0.14.0)

View Source

A field for handling an URL value.

Field-specific options

See Backpex.Field for general field options.

  • :placeholder - Placeholder value or function that receives the assigns.

  • :debounce - Timeout value (in milliseconds), "blur" or function that receives the assigns.

  • :throttle - Timeout value (in milliseconds) or function that receives the assigns.

  • :allowed_schemes (list of String.t/0) - List of allowed schemes for the link (e.g. https). Values with disallowed scheme are displayed as raw text. The default value is ["https", "http", "tel", "mailto"].

Summary

Functions

Returns the schema of configurable options for this field.

Functions

config_schema()

Returns the schema of configurable options for this field.

This can be useful for reuse in other field modules.