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

com.harana.scalajs.react.sparkline.PatternLines.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

@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