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

Create a JavaScript API for b:poll #746

Closed
stephanrauh opened this issue May 1, 2017 · 6 comments
Closed

Create a JavaScript API for b:poll #746

stephanrauh opened this issue May 1, 2017 · 6 comments
Assignees
Milestone

Comments

@stephanrauh
Copy link
Collaborator

Currently, there's no good way to stop a b:poll. We should assign it an optional widgetVar and publish (or create) an API allowing to stop and to restart a running poll.

@jepsar
Copy link
Contributor

jepsar commented May 17, 2017

When you update a poll you will get a new instance while the old instance remains active (maybe that is what you were referring to). Another thing that needs improvement is the update attribute. It now only takes a full clientId. You cannot use an id of an element that is in the same naming container.

I could do some improvements there and add a stop attribute.

@jepsar
Copy link
Contributor

jepsar commented May 20, 2017

Please see PR #788

@stephanrauh
Copy link
Collaborator Author

@jepsar @TheCoder4eu It's a pity it's not possible to assign this issue to Jasper, too. After all, you, Jasper, have provided the solution. Or is there a way, and I just don't have the access privileges to do so?

@stephanrauh
Copy link
Collaborator Author

BTW, if I'm not mistaken, we can close this ticket. If I'm mistaken, just re-open it.

@jepsar
Copy link
Contributor

jepsar commented May 22, 2017

One thing though, do you want me to add (re)start to the JS API?

@stephanrauh
Copy link
Collaborator Author

Sounds like a good idea to me. I don't know if the current implementation allows this feature, but if so, go ahead.

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

No branches or pull requests

3 participants