aboutsummaryrefslogtreecommitdiff
path: root/examples/scalajs-plain-example/js/Plotly.scala
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:21:43 +0800
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-22 17:38:45 +0800
commit0d1b7e92ada02c5149abefdbc8e70d02241951ca (patch)
treeefba968c647bb7185fdae711fac26c1306248f02 /examples/scalajs-plain-example/js/Plotly.scala
parent63d77017a205a394e604ec9f943d0ef6d2511ef4 (diff)
downloadcbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.tar.gz
cbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.tar.bz2
cbt-0d1b7e92ada02c5149abefdbc8e70d02241951ca.zip
Add small and simple scala js example
Diffstat (limited to 'examples/scalajs-plain-example/js/Plotly.scala')
-rw-r--r--examples/scalajs-plain-example/js/Plotly.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/scalajs-plain-example/js/Plotly.scala b/examples/scalajs-plain-example/js/Plotly.scala
new file mode 100644
index 0000000..a4623c6
--- /dev/null
+++ b/examples/scalajs-plain-example/js/Plotly.scala
@@ -0,0 +1,8 @@
+package prototype
+
+import scala.scalajs.js
+
+@js.native
+object Plotly extends js.Object {
+ def newPlot(id: String, data: js.Array[js.Dynamic]): js.Any = js.native
+}