UNPKG

@hashicorp/design-system-components

Version:
33 lines (32 loc) 1.36 kB
/** * Copyright IBM Corp. 2021, 2025 * SPDX-License-Identifier: MPL-2.0 */ import Component from '@glimmer/component'; import type { HdsTableScope, HdsTableThSortOrder } from './types.ts'; import type { HdsFormCheckboxBaseSignature } from '../form/checkbox/base'; import type { HdsTableSignature } from './index'; import type { HdsTableThSelectableSignature } from './th-selectable'; export interface BaseHdsTableTrSignature { Args: { selectableColumnKey?: HdsTableSignature['Args']['selectableColumnKey']; isSelectable?: boolean; isSelected?: boolean; selectionAriaLabelSuffix?: string; selectionKey?: string; selectionScope?: HdsTableScope; sortBySelectedOrder?: HdsTableThSortOrder; didInsert?: (checkbox: HdsFormCheckboxBaseSignature['Element'], selectionKey?: string) => void; onSelectionChange?: (checkbox?: HdsFormCheckboxBaseSignature['Element'], selectionKey?: string) => void; willDestroy?: () => void; onClickSortBySelected?: HdsTableThSelectableSignature['Args']['onClickSortBySelected']; }; Blocks: { default?: []; }; Element: HTMLTableRowElement; } export type HdsTableTrSignature = BaseHdsTableTrSignature; export default class HdsTableTr extends Component<HdsTableTrSignature> { get selectionKey(): string | undefined; }