Skip to content

simple snabbdom Binding for Scala.js

License

Notifications You must be signed in to change notification settings

gregor-i/scalajs-snabbdom

Repository files navigation

GitHub Workflow Status JitPack

scalajs-snabbdom

Introduction and Motivation

scalajs-snabbdom is a simple and light weight wrapper around snabbdom for scala.js. The API of scalajs-snabbdom is as close as possible to the interface of snabbdom. So for information about the usage, please refer to the documentation of snabbdom itself. Also the source of scalajs-snabbdom is quite small, so don't be afraid to look into the source.

There is already another library raquo/Snabbdom.scala as a snabbdom wrapper, but the project is archived and seems not to be maintained anymore. Also raquo/Snabbdom.scala focuses more on type safty and is more complex to use.

Setup

To use the library extend your sbt build with:

resolvers in ThisBuild += "jitpack" at "https://jitpack.io"
libraryDependencies += "com.github.gregor-i.scalajs-snabbdom" %% "scalajs-snabbdom" % {current-version}

Changelog

1.3.0:

  • Updated dependencies

1.2.6:

  • fixed import of snabbdom module

1.2.5:

  • upgraded to snabbdom 3.0

1.2.4:

  • added more Syntax Sugar
  • enhanced Modal component with background setting

1.2.2:

  • moved components into this project

1.2.1:

  • moved toasts into this project

1.2:

  • dependency upgrades
  • reworked api
    • Hooks are now typed
    • Node.event allows setting of a type parameter
    • Removed Snabbdom.hook and Snabbdom.event
    • Added Syntax object for easy conversion from Selectors to Nodes

1.1:

  • upgraded api for snabbdom 2.8

1.0.1:

  • release for scala.js 1.0

1.0.0:

  • initial release

About

simple snabbdom Binding for Scala.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published