com.harana.scalajs.react.sparkline.PatternLines.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
@JSImport("@data-ui/sparkline", "PatternLines")
@js.native
object PatternLinesRequire extends js.Any
case class PatternLines(
id: String,
width: Int,
height: Int,
stroke: String,
strokeWidth: Int,
strokeDasharray: js.UndefOr[String] = js.undefined,
strokeLinecap: js.UndefOr[String] = js.undefined,
shapeRendering: js.UndefOr[String] = js.undefined,
orientation: js.UndefOr[String] = js.undefined,
background: js.UndefOr[String] = js.undefined,
className: js.UndefOr[String] = js.undefined
){
def apply() = {
val props = JSMacro[PatternLines](this)
val f = JsComponent[js.Object, Children.None, Null](PatternLinesRequire)
f(props)
}
}
object PatternLines {
implicit def toVdomNode(p: PatternLines): VdomNode = p()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy