ThStatus

Function ThStatus 

Source
pub fn ThStatus<'a, F: Copy + Sortable>(
    cx: Scope<'a, ThStatusProps<'a, F>>,
) -> Element<'a>
Expand description

Convenience helper. Renders the Sortable value for a given UseSorter and field.

  • If the field is unsortable then render an empty string.
  • If the field is sortable in one direction then render an arrow pointing in that direction.
  • If the field is sortable in both directions then render an arrow pointing in the active direction, or a double-headed arrow if the field is inactive.

Active fields will be shown in bold (i.e., the current field being sorted by). Inactive fields will be greyed out.