Update documentation for how to import and use ramp-storylines package inside a different Vue project. Re-publish to NPM after complete. Not quite fully tested for integration into other projects (marketing site, storylines editor) so could be more info to be added.
Use this template for reference:
Usage:
Install the ramp-storylines package from npm:
npm install ramp-storylines
Install the plugin in your Vue app:
import StorylinesViewer from 'ramp-storylines'
Vue.use(StorylinesViewer);
Import i18n instance from the plugin :
import { storylinesI18n } from 'ramp-storylines';
...either inject it in Vue instance or merge messages with existing i18n instance
Use the components in your Vue templates, here is a demo usage:
<!-- Display the intro slide -->
<story-intro :config="config.introSlide" />
Update documentation for how to import and use
ramp-storylines
package inside a different Vue project. Re-publish to NPM after complete. Not quite fully tested for integration into other projects (marketing site, storylines editor) so could be more info to be added.Use this template for reference:
Usage:
Install the ramp-storylines package from npm:
Install the plugin in your Vue app:
Import
i18n
instance from the plugin :Use the components in your Vue templates, here is a demo usage: