feat: added rows column props to LayoutSelector (#2945)

This commit is contained in:
Ouwen Huang authored and GitHub committed 2022-09-20 17:43:23 -04:00
1 parent ff24b57a4b
commit fb9744a817
3 files changed
+22 -11

No files matched your search

@@ -5,7 +5,7 @@ import {
useViewportGrid,
} from '@ohif/ui';
function LayoutSelector() {
function LayoutSelector({rows, columns}) {
const [isOpen, setIsOpen] = useState(false);
const [viewportGridState, viewportGridService] = useViewportGrid();
@@ -41,6 +41,8 @@ function LayoutSelector() {
dropdownContent={
DropdownContent !== null && (
<DropdownContent
rows={rows}
columns={columns}
onSelection={({ numRows, numCols }) => {
viewportGridService.setLayout({ numCols, numRows });
}}