I’ve gone through several tutorials but I’m still struggling to understand how to make a plugin useful.
I can run all kinds of Javascript in a plugin, but I can’t figure out how to do anything with the output.
The simple example I came up with: a plugin that tells you if a number is even.
The idea is you run a workflow and input the number into the plugin action. Then you find out if the number is even or not.
I just can’t figure out how to actually get the result. It seems that I’d either have to put a useless element on the page or make a useless call to the server in order to do this simple operation. Am I missing something here?
Any suggestions for good plugin tutorials or documentation that go into depth on all the options instead of just giving 1 or 2 quick examples?
Where can I find documentation on this stuff? For example: how do I pass something from an action to a element? I haven’t seen any kind of documentation that covers things like that. I have about a million questions and haven’t found sufficient documentation to help me out.
I’d be happy to jump on a call and show you around the plugin editor sometime! There’s lots of fun tricks and intricacies to know when learning bubbleese
If it is a “Visual element”, you may return the value using “publishState”. If you want to be sure that the app handles that change, you can also do “triggerEvent” so it can respond to the change immediately.
If you are using a “Server Side” action, you may return it directly on the structure that you define as “returned values” like { “key”: “value” }.