jsTree Facade


License

License

GroupId

GroupId

org.querki
ArtifactId

ArtifactId

jstree-facade_sjs0.6_2.11
Last Version

Last Version

0.5
Release Date

Release Date

Type

Type

jar
Description

Description

jsTree Facade
jsTree Facade
Project Organization

Project Organization

org.querki
Source Code Management

Source Code Management

https://github.com/jducoeur/jstree-facade

Download jstree-facade_sjs0.6_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/org.querki/jstree-facade_sjs0.6_2.11/ -->
<dependency>
    <groupId>org.querki</groupId>
    <artifactId>jstree-facade_sjs0.6_2.11</artifactId>
    <version>0.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.querki/jstree-facade_sjs0.6_2.11/
implementation 'org.querki:jstree-facade_sjs0.6_2.11:0.5'
// https://jarcasting.com/artifacts/org.querki/jstree-facade_sjs0.6_2.11/
implementation ("org.querki:jstree-facade_sjs0.6_2.11:0.5")
'org.querki:jstree-facade_sjs0.6_2.11:jar:0.5'
<dependency org="org.querki" name="jstree-facade_sjs0.6_2.11" rev="0.5">
  <artifact name="jstree-facade_sjs0.6_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.querki', module='jstree-facade_sjs0.6_2.11', version='0.5')
)
libraryDependencies += "org.querki" % "jstree-facade_sjs0.6_2.11" % "0.5"
[org.querki/jstree-facade_sjs0.6_2.11 "0.5"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
org.webjars : jstree jar 3.2.1
org.scala-js : scalajs-library_2.11 jar 0.6.13
org.querki : querki-jsext_sjs0.6_2.11 jar 0.8
org.scala-js : scalajs-dom_sjs0.6_2.11 jar 0.9.1
org.querki : jquery-facade_sjs0.6_2.11 jar 1.0

test (1)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.11 jar 0.6.13

Project Modules

There are no modules declared in this project.

jstree-facade

A Scala.js facade for the jsTree jQuery library

Installing the library

To use jstree-facade, add this line to your libraryDependencies:

"org.querki" %%% "jstree-facade" % "0.5"

This will include the .js file into your -jsdeps.js, and the minimized version into your -jsdeps.min.js in FullOpt builds.

There is one important constraint when using jsTree, though: the library assumes that you have a CSS "theme" included as well, or things won't display correctly. For the moment, the easiest way to deal with this is to include the desired theme explicitly in your HTML page, as something like this:

    <link rel="stylesheet" href="//cdn.jsdelivr.net/webjars/org.webjars/jstree/3.2.1/themes/default/style.min.css">

Adjust as needed for your environment. Note that there are two themes available by default -- poke around in the jstree archive at WebJars to look at the alternatives.

About this facade

This is currently partial, to say the least -- jsTree is a pretty huge and complex Widget, and I've only implemented some of the pieces that I need so far. Pull requests are welcome to flesh it out further.

For more information about jsTree itself, including detailed information about the API and how to use it, see the jsTree homepage, and the GitHub repo.

Versions

Version
0.5
0.4
0.3
0.2
0.1