com.harana.scalajs.react.sparkline.BandLine.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalajs-react-sparkline_sjs0.6_2.12 Show documentation
Show all versions of scalajs-react-sparkline_sjs0.6_2.12 Show documentation
scala.js facade for @dataui-sparkline
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