Section Dashboard Menu Select¶
The section dashboard select menu can be used anywhere in a dashboard, and can be used to filter whole dashboards or parts of dashboards.
This component can be used as any other component, we can simply place it where needed and pass the appropriate props:
<SectionDashboardMenuSelect
label='Channel'
dropdownOptions={channelOptions}
selectedOption={selectedChannel}
onOptionChange={handleSelectChannel}
emptyMessage='No channels found'
/>
It may be useful to store the dropdownOptions
, selectedOption
and onOptionChange
handler in Context for use in a dashboard, especially if you will be using the select component to filter in multiple places.