cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SelectV2 - Hide Select all option

manoj24
Visitor

In SelectV2 component for multiple selection, is it possible to hide the "Select All" option?

 

1 REPLY 1

imsingh
Dynatrace Advisor
Dynatrace Advisor

 

You can use the clearable={false} on SelectV2 that will hide the Select All option as shown below:

 

<SelectV2 multiple defaultValue={['austria']} clearable={false}>
      <SelectV2.Content>
        <SelectV2.Option value="austria">Austria</SelectV2.Option>
        <SelectV2.Option value="germany">Germany</SelectV2.Option>
        <SelectV2.Option value="italy">Italy</SelectV2.Option>
        <SelectV2.Option value="spain">Spain</SelectV2.Option>
      </SelectV2.Content>
</SelectV2>

 

Thanks

Featured Posts