https://github.com/trychlos/pwix-jstree
A jstree Meteor package (workaround #12524)
https://github.com/trychlos/pwix-jstree
Last synced: about 2 months ago
JSON representation
A jstree Meteor package (workaround #12524)
- Host: GitHub
- URL: https://github.com/trychlos/pwix-jstree
- Owner: trychlos
- Created: 2023-06-10T07:51:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-06T08:09:06.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T18:56:50.583Z (about 1 year ago)
- Language: CSS
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
Awesome Lists containing this project
README
# pwix:jstree
## What is it ?
A Meteor package which provides a [jsTree](https://www.jstree.com/) patched stylesheet and a server-side snippet to work around the [#12524](https://github.com/meteor/meteor/issues/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:
```sh
meteor add pwix:jstree
```
## Usage
From the application (resp. package) point of view, you have just to call jQuery plugin as usual
```js
$( '.js-tree' ).jstree({
...
});
```
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
```sh
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](https://guide.meteor.com/writing-atmosphere-packages.html#peer-npm-dependencies), 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.1.0:
```js
'jstree': '^3.3.0'
```
Each of these dependencies MUST be installed at application level:
```sh
meteor npm install --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](https://github.com/trychlos/pwix-jstree/issues).
---
P. Wieser
- Last updated on 2024, Jul. 6th