pwix:jstree

v1.0.7Published 3 months ago

pwix:jstree

What is it ?

A Meteor package which provides a jsTree patched stylesheet and a server-side snippet to work around the #12524 Meteor issue.

Rationale

Due to the above issue, any Meteor application or package which would take advantage of jsTree resources has to have a fixed route to the pages which use jsTree, and patch its stylesheet accordingly.

As described in the issue form, this package provides a work-around which works with any route, thus preventing the application or package to have to fix any route, thus being much more flexible.

Installation

This Meteor package is installable with the usual command:

    meteor add pwix:jstree

Usage

From the application (resp. package) point of view, it has just have to include the jsTree javascript, says:

1    import 'jstree/dist/jstree.min.js';

and enjoy!

Provides

This package automatically publishes the patched stylesheet and the corresponding .png icon files.

Please note that the jsTree package MUST have been installed at application level

    meteor npm install jstree --save

Configuration

None at the moment.

NPM peer dependencies

Starting with v 1.0.0, and in accordance with advices from the Meteor Guide, we no more hardcode NPM dependencies in the Npm.depends clause of the package.js.

Instead we check npm versions of installed packages at runtime, on server startup, in development environment.

Dependencies as of v 1.0.0:

1    'jstree': '^3.3.0'

Each of these dependencies MUST be installed at application level:

    meteor npm install <package> --save

Translations

None at the moment.

Cookies and comparable technologies

None at the moment.

Issues & help

In case of support or error, please report your issue request to our Issues tracker.


P. Wieser

  • Last updated on 2024, Jun. 13th