Plugins Templates

Kepler implements a convenient mechanism to give plugins the ability to extend the platform’s basic UI structure.
Using the dynamic template pluginsTemplate and register the plugin’s templates inside the plugin.js in the section templates.

Here an example of templates for the plugin keplerjs:share

1
2
3
4
5
6
7
K.Plugin({
name: 'share',
templates: {
panelPlace: ['panelPlace_share'],
popupCursor: 'popupCursor_share'
}
});

Any plugin can be define one or many templates to include in default templates panelPlace, popupCursor.

The templates positioned inside the template panelPlace and popupCursor

1
2
3
4
5
<template name="panelPlace">
...
{{> pluginsTemplate name='panelPlace'}}
...
</template>

A complete list of default extensible templates is defined in K.templates

Edit on GitHub
Licensed under Creative Commons