Skip to content

Commit

Permalink
add baseline with a "toggle" updatemenu button
Browse files Browse the repository at this point in the history
  • Loading branch information
etpinard committed Oct 25, 2019
1 parent 576c54b commit 62cacdb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Binary file added test/image/baselines/updatemenus_toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions test/image/mocks/updatemenus_toggle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"data": [
{
"mode": "lines",
"y": [1, 1],
"line": {
"width": 5,
"color": "blue"
}
}
],
"layout": {
"updatemenus": [
{
"type": "buttons",
"buttons": [
{
"label": "toggle",
"method": "restyle",
"args": [
"line.color",
"blue"
],
"args2": [
"line.color",
"red"
]
}
]
}
]
}
}

0 comments on commit 62cacdb

Please sign in to comment.