F.A.Q.
Last updated
Was this helpful?
Last updated
Was this helpful?
Think of it as a function that can run with some parameters and it will return a response and trigger events. Bubble has its own integrated actions, such as: run an animation, change data in the database etc.
When we are adding the plugin element on the page, its actions becomes available to use, extending the default integrated actions. This is why we need to add the plugin element on the page, to add all its actions to our Bubble app Of course, the plugin can have some actions without the plugin element, such as API calls, they become available automatically after installing the plugin in the app.
States are Bubble form of variables. It can contain any kind of data that can dynamically change. For example, when running a plugin action, its response can be found the plugin element states.
Lets take the Utils element as an example, if we will dynamically select it in a text field, we can see all states available for this element:
Events as the name says, is when something happened in our app. In same way as actions, Bubble has its own integrated events, such as: page is loaded, input value changed etc. When we are adding the plugin element on the page, all its event become available to us, so we use them to know when a plugin action was executed and let the user know about its response. Lets see the events from the Polkadot API element: