Cinder.Renderers.SortIcon (Cinder v0.16.0)

Copy Markdown View Source

Shared sort indicator used by every renderer (table, list, grid).

Renders a Heroicon reflecting the current sort direction so that all layouts show identical indicators. Handles the ascending, descending, and unsorted states (including *_nils_first/*_nils_last variants) and applies the loading pulse while data is refreshing.

Summary

Functions

sort_icon(assigns)

Attributes

  • sort_direction (:atom) - Defaults to nil.
  • theme (:map) (required)
  • loading (:boolean) - Defaults to false.