harana / scalajs-react-autoresponsive

Scala.js facade for the autoresponsive-react library.

GitHub

scalajs-react-autoresponsive

Build Status Maven Central Scala.js

Scala.js facade for the autoresponsive-react library.

Setup

SBT

Add these dependencies to your build file:

libraryDependencies ++= Seq(
  "com.github.japgolly.scalajs-react" %%% "core" % "1.2.3",
  "com.github.japgolly.scalajs-react" %%% "extra" % "1.2.3",
  "com.harana" %%% "scalajs-react-autoresponsive" % "1.1.0"
)

The artifacts are published to Sonatype so ensure you have it included:

resolvers += Resolver.sonatypeRepo("releases")

Usage

Example:

AutoResponsive(containerWidth=300)(
  Seq(
    <.div(^.className := "item", ^.width := "100px", ^.height := "100px"),
    <.div(^.className := "item", ^.width := "50px", ^.height := "50px")
  )
)

Demo

This will start a web server on http://localhost:8080:

sbt 
fastOptJS::webpack
demo/compile:fastOptJS::startWebpackDevServer

License

BSD 3

Harana

Harana is an AI-powered data catalog.

It automatically imports metadata from all your favourite tools: Confluence, AWS Glue, Kafka, PostgreSQL, MySQL, Oracle, SQL Server, IBM DB2, SQLite, Hive, CouchDB, MongoDB, HBase, Cassandra, ElasticSearch, DynamoDB, Salesforce, SugarCRM, Excel, CSV, XML, JSON.