-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable side by side view of linked tables
- Loading branch information
Showing
8 changed files
with
186 additions
and
32 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
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
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
27 changes: 27 additions & 0 deletions
27
vuu-ui/packages/vuu-datatable/src/linked-table-view/TableLayoutToggleButton.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,27 @@ | ||
import { Icon } from "@finos/vuu-ui-controls"; | ||
import { | ||
ToggleButton, | ||
ToggleButtonGroup, | ||
ToggleButtonGroupProps, | ||
} from "@salt-ds/core"; | ||
|
||
export const TableLayoutToggleButton = (props: ToggleButtonGroupProps) => { | ||
return ( | ||
<ToggleButtonGroup {...props}> | ||
<ToggleButton | ||
className="vuuIconToggleButton" | ||
value={0} | ||
aria-label="Tabbed View" | ||
> | ||
<Icon name="split-v" size={18} /> | ||
</ToggleButton> | ||
<ToggleButton | ||
className="vuuIconToggleButton" | ||
value={1} | ||
aria-label="Side by side view" | ||
> | ||
<Icon name="tabs" size={18} /> | ||
</ToggleButton> | ||
</ToggleButtonGroup> | ||
); | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.