How to develope kibana vue.js plugins

Now i develope plugin at kibana 7.1,you know use plugins-generator to generate plugins.default use react.js.if i want to change to vue.js.is there any tool or example.i'm stuck here.

I don't think we've come up with any non-React examples, but it is possible.

It's been a long time since I did Vue (pre 1.0), but you should be able to do something like this (untested code):

function Root($scope, $element) {
  const el = $element[0];

  $scope.$on('$destroy', () => {
     // TODO: Tear down your Vue app here
  });

  new Vue({
    el,
    data: { todo: 'Whatever data your app needs...' },
  });
}

chrome.setRootController(PLUGIN_ID, Root);

In your plugin's main public file.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.