View Source AshPyroComponents.Components.FilterForm (AshPyroComponents v0.1.0)
Automatically render filter forms for Ash resources.
Overridable Component Attributes
You can customize the components in this module by configuring overrides.
The components in this module support the following overridable attributes:
:class
:css_classes
:form_class
:css_classes
:fieldset_class
:css_classes
:legend_class
:css_classes
:legend_label_class
:css_classes
:button_class
:css_classes
:input_class
:css_classes
render_component/1
:class
:css_classes
:fieldset_class
:css_classes
:legend_class
:css_classes
:legend_label_class
:css_classes
:button_class
:css_classes
:input_class
:css_classes
render_predicate/1
:fieldset_class
:css_classes
:class
:css_classes
:left_fields_class
:css_classes
:button_class
:css_classes
:input_class
:css_classes
Summary
Components
Renders a filter form for the given resource action.
Attributes
form
(:any
) (required)destination_field
(:map
) (required)is_enum?
(:boolean
) (required)tz
(:string
) (required)input_class
(:any
) (required)
Functions
Get the available group operators for filter form groups as select options.
Get the available predicate operators for the given resource field as select options.
Get the available predicate operators and functions for the given resource field.
Components
Renders a filter form for the given resource action.
Attributes
overrides
(:list
) - Manually set the overrides for this component (instead of config/default). Defaults tonil
.id
(:string
) (required)resource
(:atom
) (required) - the resource of the data table.action
(:atom
) (required) - the action to filter.to_uri
(:any
) (required) - a function that takes params and returns a uri.uri_params
(:map
) (required) - the current params; filter params are expected to be namespaced under target_id.target_id
(:string
) (required) - the target component id.actor
(:map
) - the actor to be passed to actions. Defaults tonil
.tz
(:string
) - timezone. Defaults to"Etc/UTC"
.class
(:any
) - (overridable,:css_classes
).form_class
(:any
) - (overridable,:css_classes
).fieldset_class
(:any
) - (overridable,:css_classes
).legend_class
(:any
) - (overridable,:css_classes
).legend_label_class
(:any
) - (overridable,:css_classes
).button_class
(:any
) - (overridable,:css_classes
).input_class
(:any
) - (overridable,:css_classes
).
Attributes
form
(:any
) (required)destination_field
(:map
) (required)is_enum?
(:boolean
) (required)tz
(:string
) (required)input_class
(:any
) (required)
Functions
Get the available group operators for filter form groups as select options.
Get the available predicate operators for the given resource field as select options.
Get the available predicate operators and functions for the given resource field.