# HG changeset patch # User Tomas Zeman # Date 1679492091 -3600 # Node ID 1e1ae3342a45e9ad4d0e30674b71307611ac9133 # Parent 344e0506d6596f6964c782c5468a427cfaee17a0 DataSet.remove() diff -r 344e0506d659 -r 1e1ae3342a45 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 , + * Copyright 2019-2023 Tomas Zeman * * 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 }