eclipsesource / tabris-js

Create native mobile apps in JavaScript or TypeScript.
https://tabrisjs.com
BSD 3-Clause "New" or "Revised" License
1.4k stars 170 forks source link

Documentation about plugin needs to be more precise #2271

Open ld75 opened 1 year ago

ld75 commented 1 year ago

Feature description

This page : https://docs.tabris.com/latest/custom-widgets.html needs to be more precise on how to call a tabris plugin installed on our application. I wanted to import my tabris plugin into my app.js file but could not guess how to do it. Fortunately a friend of mine told me.

Proposed solution

I had to do : const {MyPlugin} = require('tabris'); // how was I suppose to know that the plugin was inside "tabris" ?

also I'm not even sure that If I did in my app.js var myplugin = new MyPlugin()
it would have worked... did'nt tried yet. But if it works you should explain it too in your document.

Thank you!

Elyft commented 8 months ago

@elshadsm can you please answer ?