plotly / plotly/angular-plotly.js

how updatemenus buttons bind my own event function

Open
#223 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.