plotly / plotly/angular-plotly.js
how updatemenus buttons bind my own event function
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 242
- Forks
- 81
- Avg merge
- 8h 48m
- Merged PRs (30d)
- 18
Description
updatemenus: [{
x: 0.5,
y: 0,
yanchor: "top",
xanchor: "center",
showactive: false,
direction: "left",
type: "buttons",
pad: {"t": 150, "r": 10},
buttons: [{
method: "animate",
args: [null, {
fromcurrent: true,
transition: {
duration: 0,
},
frame: {
duration: 100,
redraw: false
}
}],
label: "Play"
}, {
method: "animate",
args: [
[null],
{
mode: "immediate",
transition: {
duration: 0
},
frame: {
duration: 0,
redraw: false
}
}
],
label: "Pause"
}]
}]
like this when i start i want to play music and pause to pause play,it seems not support this, is there some way to reach that?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied updatemenus configuration and trace how button methods and animation controls are handled in the repository. Search for existing tests or examples covering custom callbacks; done should be a clearly scoped implementation or documentation path for invoking user-defined play and pause handlers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100