You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
481 B
19 lines
481 B
package outwatchapp.components
|
|
|
|
import outwatchapp.ui.components.todo.Todo
|
|
import typings.fuseJs.mod.Fuse.IFuseOptions
|
|
import typings.fuseJs.mod._
|
|
import typings.fuseJs.mod.{default => FuseC}
|
|
|
|
import scalajs.js
|
|
|
|
object FusejsDemo {
|
|
val x: Fuse[Todo] = new FuseC[Todo](
|
|
js.Array(Todo(1, "fuse")),
|
|
IFuseOptions().setKeys(js.Array("id", "content"))
|
|
)
|
|
val y = x.search[Todo]("fuse")
|
|
val mySeq = Seq(1, 2, 3)
|
|
val jsArr = js.Array(mySeq: _*)
|
|
val seq2 = jsArr.toSeq
|
|
}
|