Skip to content

Commit

Permalink
comment (deephaven#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed May 21, 2024
1 parent 056a4f2 commit 75691dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/ui/src/js/src/elements/spectrum/useSelectionProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export type SerializedSelectionEventCallback = (
event: SerializedSelection
) => void;

/**
* Serialized selection props we receive from dh ui.
*/
export interface SerializedSelectionProps {
selectionMode?: SelectionMode | Uppercase<SelectionMode>;

Expand All @@ -21,6 +24,9 @@ export interface SerializedSelectionProps {
onSelectionChange?: SerializedSelectionEventCallback;
}

/**
* Selection props that can be passed to DHC components.
*/
export interface SelectionProps {
selectionMode?: SelectionMode;
onChange?: (selection: ItemSelection) => void;
Expand Down

0 comments on commit 75691dc

Please sign in to comment.