-
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.
- Loading branch information
Showing
4 changed files
with
62 additions
and
21 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
webapp/grebi_ui/src/components/node_graph_view/GraphViewControls.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Box, Button, Divider } from "@mui/material"; | ||
import DatasourceSelector from "../DatasourceSelector"; | ||
import { FilterAlt, FilterList } from "@mui/icons-material"; | ||
|
||
export default function GraphViewControls({ | ||
datasources, | ||
dsEnabled, setDsEnabled, | ||
onMouseoverDs, onMouseoutDs | ||
}:{ | ||
datasources:string[], | ||
dsEnabled:string[], setDsEnabled:(ds:string[])=>void, | ||
onMouseoverDs?:undefined|((ds:string)=>void), onMouseoutDs?:undefined|((ds:string)=>void) | ||
}) { | ||
return <div> | ||
<Box sx={{p:1}}> | ||
<DatasourceSelector datasources={datasources} dsEnabled={dsEnabled} setDsEnabled={setDsEnabled} onMouseoverDs={onMouseoverDs} onMouseoutDs={onMouseoutDs} /> | ||
</Box> | ||
<Box sx={{p:1}}> | ||
<button className="bg-gray-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> | ||
<FilterAlt /> | ||
Filter Edges | ||
</button> | ||
</Box> | ||
</div> | ||
} |
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