Skip to content

Commit

Permalink
Mapped ActionMenu and ListActionMenu (deephaven#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed May 9, 2024
1 parent d9b94f6 commit ce3c0f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/ui/src/js/src/elements/SpectrumElementUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ButtonGroup, Checkbox } from '@adobe/react-spectrum';
import { ValueOf } from '@deephaven/utils';
import {
ActionGroup,
ActionMenu,
Content,
ContextualHelp,
Grid,
Expand All @@ -10,6 +11,7 @@ import {
Item,
IllustratedMessage,
ListActionGroup,
ListActionMenu,
NumberField,
Switch,
Tabs,
Expand All @@ -35,6 +37,7 @@ export const SPECTRUM_ELEMENT_TYPE_PREFIX = 'deephaven.ui.spectrum.';
export const SpectrumSupportedTypes = {
ActionButton,
ActionGroup,
ActionMenu,
Button,
ButtonGroup,
Checkbox,
Expand All @@ -47,6 +50,7 @@ export const SpectrumSupportedTypes = {
Icon,
IllustratedMessage,
ListActionGroup,
ListActionMenu,
NumberField,
Item,
RangeSlider,
Expand Down
4 changes: 4 additions & 0 deletions plugins/ui/src/js/src/widget/WidgetUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import React, { ComponentType } from 'react';
// wrapped due to how Spectrum collection components consume them.
import {
ActionGroup,
ActionMenu,
Item,
ListActionGroup,
ListActionMenu,
Section,
} from '@deephaven/components';
import { ValueOf } from '@deephaven/utils';
Expand Down Expand Up @@ -49,9 +51,11 @@ export const elementComponentMap = {

// Other components
[ELEMENT_NAME.actionGroup]: ActionGroup,
[ELEMENT_NAME.actionMenu]: ActionMenu,
[ELEMENT_NAME.fragment]: React.Fragment,
[ELEMENT_NAME.item]: Item,
[ELEMENT_NAME.listActionGroup]: ListActionGroup,
[ELEMENT_NAME.listActionMenu]: ListActionMenu,
[ELEMENT_NAME.listView]: ListView,
[ELEMENT_NAME.picker]: Picker,
[ELEMENT_NAME.section]: Section,
Expand Down

0 comments on commit ce3c0f2

Please sign in to comment.