Exporting

There are three ways to export the built page: preview, pwa or json. When clicking the save button the b-builder component emits a saved event with the builder instance as its payload, which exposes an export method.

<div id="app">
  <b-builder @saved="onSave"></b-builder>
</div>

<script>
  new Vue({
  el: '#app',
  methods: {
    onSave (builder) {
      // you can use 'preview', 'pwa' or 'json' strings
      // 'json' is the default exporting mode
      builder.export('preview');
    }
  }
});
</script>
Last Updated: 6/20/2018, 11:02:44 AM