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

A smart component that auto-renders Forms for Ash from a given pyro DSL configuration.

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 (:any) - Defaults to :unassigned.
  • pyro_form (:any) - Defaults to :unassigned.
  • 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.