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

Add onClick capability to templates #2

Open
Logodaedalus opened this issue May 21, 2018 · 1 comment
Open

Add onClick capability to templates #2

Logodaedalus opened this issue May 21, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@Logodaedalus
Copy link
Contributor

Currently hacked into Display.js, but render should be changed from returning just a string to returning
{ text: "some text", onClicks: [{id:"span1", onClick:function deedle() } ] }

and then appending the onClick functions to a placeholder in processTemplate().

Then at the very end, it should by default replace the text with .text property, but should check for onClicks and if the array has stuff, cycle through searching and add them to the elements?

@Logodaedalus Logodaedalus added the enhancement New feature or request label May 21, 2018
@Logodaedalus
Copy link
Contributor Author

Can't ship with shimmer wishlists unless this is implemented!

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

No branches or pull requests

1 participant