com.harana.scalajs.react.sparkline.VerticalReferenceLine.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 com.harana.scalajs.react.sparkline.VerticalReferenceLine.RenderLabel
import japgolly.scalajs.react._
import japgolly.scalajs.react.vdom.html_<^._
import org.scalajs.dom.raw.HTMLElement
import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|
@JSImport("@data-ui/sparkline", "VerticalReferenceLine")
@js.native
object VerticalReferenceLineRequire extends js.Any
case class VerticalReferenceLine(
reference: js.UndefOr[Int | String] = js.undefined,
LabelComponent: js.UndefOr[HTMLElement] = js.undefined,
labelOffset: js.UndefOr[Int] = js.undefined,
labelPosition: js.UndefOr[String] = js.undefined,
renderLabel: js.UndefOr[RenderLabel] = js.undefined,
stroke: js.UndefOr[String] = js.undefined,
strokeDasharray: js.UndefOr[String] = js.undefined,
strokeLinecap: js.UndefOr[String] = js.undefined,
strokeWidth: js.UndefOr[Int] = js.undefined
){
def apply() = {
val props = JSMacro[VerticalReferenceLine](this)
val f = JsComponent[js.Object, Children.None, Null](VerticalReferenceLineRequire)
f(props)
}
}
object VerticalReferenceLine {
type RenderLabel = Double => String
implicit def toVdomNode(v: VerticalReferenceLine): VdomNode = v()
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy