DataSet.remove()
authorTomas Zeman <tomas@functionals.cz>
Wed, 22 Mar 2023 14:34:51 +0100
changeset 19 1e1ae3342a45
parent 18 344e0506d659
child 20 a76dd144bca4
DataSet.remove()
visjs/src/cz/functionals/visjs/DataSet.scala
--- a/visjs/src/cz/functionals/visjs/DataSet.scala	Fri Feb 17 13:35:20 2023 +0100
+++ b/visjs/src/cz/functionals/visjs/DataSet.scala	Wed Mar 22 14:34:51 2023 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright 2019 Tomas Zeman <tomas@functionals.cz>, <tzeman@volny.cz>
+ * Copyright 2019-2023 Tomas Zeman <tomas@functionals.cz>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
 import scala.scalajs.js
 import scala.scalajs.js.annotation.JSGlobal
 
+// https://visjs.github.io/vis-data/data/dataset.html
 @js.native
 @JSGlobal("vis.DataSet")
 class DataSet[T](v: js.Array[T]) extends js.Any {
@@ -29,4 +30,6 @@
   def get(ids: js.Array[String]): js.Array[T] = js.native // may return null elements
   def getIds(): js.Array[String] = js.native
   def update(v: T): Unit = js.native
+  def remove(id: String): js.Array[String] = js.native
+  def remove(ids: js.Array[String]): js.Array[String] = js.native
 }