Skip to content
Discussion options

You must be logged in to vote

Hi @martpet

There's no radio mode in FilterItemOption, but you can use the customTabs slot on ViewSettingsDialog to avoid building everything from scratch:

import {
  ViewSettingsDialog,
  ViewSettingsDialogCustomTab,
  RadioButton
} from '@ui5/webcomponents-react';

<ViewSettingsDialog
  customTabs={
    <ViewSettingsDialogCustomTab text="Time">
      <RadioButton name="time" text="Last 7 Days" />
      <RadioButton name="time" text="Last 30 Days" />
    </ViewSettingsDialogCustomTab>
  }
/>

You keep the ViewSettingsDialog shell but manage the selected state yourself, it won't appear in the built-in filters payload of onConfirm.

If native radio support in FilterItem matters to you, consi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by martpet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants