Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how updatemenus buttons bind my own event function #223

Open
hackedbyxx opened this issue Feb 3, 2023 · 0 comments
Open

how updatemenus buttons bind my own event function #223

hackedbyxx opened this issue Feb 3, 2023 · 0 comments

Comments

@hackedbyxx
Copy link

hackedbyxx commented Feb 3, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant