All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harana.scalajs.react.sparkline.BandLine.scala Maven / Gradle / Ivy

The newest version!
package com.harana.scalajs.react.sparkline

import com.harana.scalajs.react.macros.JSMacro
import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.html_<^._

import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|

@JSImport("@data-ui/sparkline", "BandLine")
@js.native
object BandLineRequire extends js.Any

case class BandLine(
  band: js.UndefOr[String | Band] = js.undefined,
  fill: js.UndefOr[String] = js.undefined,
  fillOpacity: js.UndefOr[Double] = js.undefined,
  stroke: js.UndefOr[String] = js.undefined,
  strokeWidth: js.UndefOr[Int] = js.undefined
){
  def apply() = {
    val props = JSMacro[BandLine](this)
    val f = JsComponent[js.Object, Children.None, Null](BandLineRequire)
    f(props)
  }
}

object BandLine {
  implicit def toVdomNode(b: BandLine): VdomNode = b()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy