This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/ WIP: Dropdown Multiselector
- Loading branch information
Showing
7 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/src/Components/Map/MonthFilter.tsx → ...src/Components/Map/Inputs/MonthFilter.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// import React, { useState } from 'react'; | ||
|
||
// import Multiselect from 'multiselect-react-dropdown'; | ||
|
||
// // FIGURE THIS OUT | ||
|
||
// interface Props { | ||
// /** | ||
// * value: text input in the search bar | ||
// * onPlaceSelect: function taking argument "value" | ||
// */ | ||
|
||
// options: any[]; | ||
// onOptionChange: (value: any) => void; | ||
// } | ||
|
||
// // options formatting: | ||
// // options = [{key: "ALL", key: "KPI", .... }] | ||
|
||
// /** | ||
// * Component rendering Search bar | ||
// */ | ||
|
||
// const MultiSelect: React.FC<Props> = ({ options, onOptionChange }) => { | ||
// const [selectedOptions, setOptions] = useState<String[]>([]); | ||
|
||
// function onChange(selectedList) {} | ||
|
||
// return ( | ||
// <Multiselect | ||
// // Options to display in the dropdown | ||
// displayValue="key" | ||
// options={(options: string[]) => setOptions(options)} | ||
// onSelect={(onOptionChange, onChange)} // Function will trigger on select event | ||
// onRemove={onOptionChange} // Function will trigger on remove event | ||
// showCheckbox | ||
// /> | ||
// ); | ||
// }; | ||
|
||
// export default MultiSelect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters