Aurora.Uix.Templates.Basic.Components (Aurora UIX v0.1.5-rc.1)

Copy Markdown

Aurora UIX-specific UI components for the Basic template.

This module provides the higher-level components used by the Basic template's renderers, complementing the lower-level Phoenix-compatible components in Aurora.Uix.Templates.Basic.CoreComponents.

Components

  • auix_simple_form/1 — form wrapper with Aurora UIX layout classes.
  • auix_items/1 — responsive table/card switcher for collection views.
  • auix_items_table/1 — desktop table view for collections.
  • auix_items_card/1 — mobile card view for collections.
  • pages_selection/1 — pagination bar with page numbers and selection counts.
  • record_navigator_bar/1 — previous/next record navigation for form/show views.

Overriding

All public components support runtime override. Configure a replacement module:

config :aurora_uix, :basic_components, MyApp.MyComponents

The replacement module only needs to export the specific functions it overrides; unimplemented functions fall back to the defaults here.

See Aurora.Uix.ComponentsResolver and Aurora.Uix.ComponentsResolverHelper for details on the override mechanism.

Summary

Functions

Determines if record navigator should be displayed at the specified position.

Functions

components_override()

record_navigator?(arg1, position)

@spec record_navigator?(map(), atom()) :: boolean()

Determines if record navigator should be displayed at the specified position.

Parameters

  • layout_options (map()) - Layout configuration map containing record_navigator setting.
  • position (atom()) - The position to check. Common values include :top, :bottom, or :both.

Returns

boolean() - True if record navigator should be displayed at the given position, false otherwise.

Examples

iex> record_navigator?(%{layout_options: %{record_navigator: [:top, :bottom]}}, :top)
true

iex> record_navigator?(%{layout_options: %{record_navigator: :top}}, :top)
true

iex> record_navigator?(%{layout_options: %{record_navigator: :top}}, :bottom)
false