Herteby / graphical-grapher

Get an overview of all your Grapher links and Collection2 schemas, and create queries just by clicking (with live results)
MIT License
12 stars 2 forks source link

Blaze? #2

Open nadeemja opened 6 years ago

nadeemja commented 6 years ago

Hi,

Am I correct in my understanding that this does not support BlazeUI?

Herteby commented 6 years ago

True, but Mitar has made a Blaze-Vue integration package: https://github.com/meteor-vue/blaze-integration.

I haven't tested it but you should be able to use it like this: installation

meteor add vuejs:blaze-integration
meteor npm install --save vue

myTemplate.js

import GraphicalGrapher from 'meteor/herteby:graphical-grapher'
Template.myTemplate.helpers({
  graphicalGrapher(){
    return {
      component:GraphicalGrapher,
      props:{ //here you can set some options
        hideSchemalessCollections:true
      }
    }
  }
})

myTemplate.html

<template name="myTemplate">
  {{> VueComponent graphicalGrapher}}
</template>

Let me know if you have issues.

(Btw, Mitars note about having to use his custom forks of Vue and Tracker is only for reactivity, which you don't really need for this.)