View Source AshPyroComponents.Overrides.BEM (AshPyroComponents v0.0.1)

This overrides file complements PyroComponents.Overrides.BEM by adding BEM classes to all AshPyro components. It does not define any style.

This is great if you want to fully customize your own styles; all you have to do is define the classes in your CSS file.

## Configuration

As with any Pyro overrides, you need to include the correct override files in your config.exs file:

  config :pyro, :overrides, [AshPyroComponents.Overrides.BEM, PyroComponents.Overrides.BEM]
  • Captured functions with arity 1 and the arg named passed_assigns are passed component assigns at runtime, allowing complex conditional logic
  • assign_overridables/1 preserves the definition order of attrs and assigns them in that order, preserving dependency chains
  • Attrs with type :css_classes utilize the configured CSS merge utility

Overrides

Summary

Functions

This override is passed component assigns and executed while being assigned at runtime.

This override is passed component assigns and executed while being assigned at runtime.

This override is passed component assigns and executed while being assigned at runtime.

Functions

Link to this function

smart_data_table_class(passed_assigns)

View Source

This override is passed component assigns and executed while being assigned at runtime.

Link to this function

smart_form_class(passed_assigns)

View Source

This override is passed component assigns and executed while being assigned at runtime.

Link to this function

smart_form_field_group_class(passed_assigns)

View Source

This override is passed component assigns and executed while being assigned at runtime.