To use this plugin, you first need to include it. The easiest way for that is to use the mv-plugins
attribute with the id of the plugin ([plugin.id]
), like this:
Starting from v0.3.0, you can specify the plugin version in mv-plugins
, like so mv-plugins="[plugin.id]@version"
.
If there are no releases (versions), the latest code will be used.
You can have multiple mv-plugins
attributes on different elements. Its value also accepts multiple plugin ids, separated by spaces (e.g. mv-plugins="[plugin.id] plugin1 plugin2"
).
This way, every Mavo app can individually declare which plugins it needs and each plugin is only fetched once.
Alternatively, you can download the source files for this plugin by visiting its repository on Github
Alternatively, you can download the JavaScript file of this plugin by clicking below:
Then, you can include it by using the <script>
element, right after the one for Mavo:
Note that some plugins may also include CSS or other JavaScript files, which they expect to find in the same directory as the plugin’s main JS file.
You do not have to worry about this if including the plugin via the mv-plugins
attribute.