View Source Pyro.Components.SmartForm (Pyro v0.0.2)

overridable-component-attributes

Overridable Component Attributes

You can customize the components in this module by configuring overrides.

The components in this module support the following overridable attributes:

  • render_field/1

    • :field_group_class :tails_classes (required)
    • :field_group_label_class :tails_classes (required)
  • smart_form/1

    • :autocomplete :string (required)
    • :actions_class :tails_classes (required)
    • :class :tails_classes (required)

Link to this section Summary

Components

Renders a smart Ash form.

Link to this section Components

Renders a smart Ash form.

attributes

Attributes

  • overrides (:list) - Manually set the overrides for this component (instead of config/default). Defaults to nil.
  • action_info (:map) - Defaults to nil.
  • pyro_form (:map) - Defaults to nil.
  • action (:atom) (required) - The action to be used.
  • as (:any) - The server side parameter to collect all input under. Defaults to nil.
  • for (:map) (required) - The datastructure for the form.
  • resource (:atom) (required) - The resource of the form.
  • actor (:map) - The actor to be passed to actions. Defaults to nil.
  • autocomplete (:string) - (overridable, required).
  • actions_class (:any) - (overridable, :tails_classes, required).
  • class (:any) - (overridable, :tails_classes, required). Global attributes are accepted.