Added new "Triggers" button type - #11
Conversation
|
Here's a practical example... For the JavaScript trigger, |
|
Just added the ability to parse element tags in links. EXAMPLES: A link to view the "notes" of this entry on the front-end... JS to send an email about this entry... In the examples above, |
|
I will merge this soon, I promise! Just fighting the tide of client work ... |
|
Lol, sounds good. :) |
|
Hi Josh! I don't suppose you've had a chance to look at this yet? |
|
Hey Lindsey, sorry I didn’t have time in the end - I’ve passed this over to @Nav33d who is taking over maintenance of this project. I don’t see any reason why it can’t just be merged, but it probably makes sense to test it out first. |
|
Thanks @joshangell! Hi @Nav33d! Would you mind taking a look at this PR? I've found this feature to be extremely helpful, and it works beautifully within the larger context of the Button Box plugin. Please let me know if you have any questions! :) |
|
Hi @lindseydiloreto, Apologies for the delayed reply! I have now merged the pull request. Many thanks |
|
Fantastic, thanks @Nav33d! Would you mind mentioning the Trigger type in the README and/or docs? There are some examples at the top of this thread which you could use on the site. Let me know if you need anything else from me! :) |

This PR adds a new type of button: Triggers
Instead of being a "radio button in disguise", a trigger acts more like an actual button. As in, you click it and something immediately happens.
There are two types of triggers... "Link" and "JavaScript".
Button Box is awesome, I hope you find this PR useful! Please let me know if you have any questions. :)