forked from streamlit/streamlit
-
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.
Allow adding Plotly toolbar buttons (streamlit#9190)
## Describe your changes This PR fixes an issue where the configuration of `modeBarButtonsToAdd` for the plotly toolbar was not respected. ## GitHub Issue Link (if applicable) - Closes streamlit#9134 ## Testing Plan - Added e2e test. --- **Contribution License Agreement** By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.
- Loading branch information
1 parent
36cdba6
commit 0ed880a
Showing
5 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
Binary file modified
BIN
+366 Bytes
(100%)
.../linux/st_plotly_chart_test/st_plotly_chart-toolbar_customization[chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+274 Bytes
(100%)
..._/linux/st_plotly_chart_test/st_plotly_chart-toolbar_customization[firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+339 Bytes
(100%)
...__/linux/st_plotly_chart_test/st_plotly_chart-toolbar_customization[webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -445,6 +445,7 @@ export function PlotlyChart({ | |
} | ||
}, | ||
}, | ||
...(config.modeBarButtonsToAdd ?? []), | ||
] | ||
} | ||
|
||
|