PhoenixKitLocations.Web.Components.LocationTabs (PhoenixKitLocations v0.3.0)

Copy Markdown View Source

Shared tab navigation between a Location's "Details" and "Structure" pages. Each tab is served by a separate LiveView (LocationFormLive and LocationStructureLive), so tab links use navigate rather than patch, mirroring PhoenixKitWarehouse.Web.Components.WarehouseHeader.

Only meant to be rendered once the Location already exists (has a uuid) — there is no Structure tab for a not-yet-created Location.

Summary

Functions

location_tabs(assigns)

Attributes

  • location (:map) (required)
  • active (:atom) (required) - Must be one of :details, or :structure.