Skip to content

DataTableActiveRow — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { DataTableActiveRow } from '@gj-kit/expo-ui';
/**
* App-driven "current row" highlight for consoles where activating a row opens
* a detail surface (Sheet, side panel) that stays in sync with the table. This
* is deliberately not selection: the row is not aria-selected, because that
* would claim grid/listbox semantics this static table does not have. On the
* web the active body row — the `<tr>` in the table presentation and the
* listitem in the list presentation — carries `aria-current="true"` instead,
* which is valid on any element. Native presentations expose no extra
* accessibility state for the active row, so the detail surface itself must
* also convey which record is open. Grouping key and style in one object makes
* a style without a key impossible by construction, the same shape discipline
* as the selection prop.
*/
interface DataTableActiveRow<RowKey extends DataTableRowKey> {
/** Key of the row currently open in a detail surface; null means none. */
readonly key: RowKey | null;
/**
* Replaces the default active visual (primarySoft full-row wash + primary
* start-edge accent on the row-header cell or list row container). Layered
* onto the active row after built-in row styles; the web table presentation
* applies it to each of the row's cells, because a real <table> row box
* cannot paint above its opaque cells. `aria-current` stays either way.
*/
readonly style?: StyleProp<ViewStyle> | undefined;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub