Select to view content in your preferred language

clear multiselect

316
0
12-16-2022 09:29 AM
saraswathiemani2
Occasional Contributor

Hi All.

 I used the multi-select from Jimu library in a custom application. is there a way to clear the selection from the form?

saraswathiemani2_0-1671211609183.png

 

The custom tool is developed for selecting multiple options from drop down. User checks the check box to select the feature. And the search option (Search button) renders the selection on the map correctly. The clear button clears the selection from the map but not from the check box and the form where it displays the selection. Is there a way to clear the selection from the form also.

saraswathiemani2_1-1671211609185.png

 

I want to clear the options above programmatically. 

getTRSMultiSelectOptions = (option: TRSOption) => {
    return option.units.map((item) => ({
      label: item,
      value: item,
    }));
  };
0 Kudos
0 Replies