com.olvind.mui.std.ScrollToOptions.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.std
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait ScrollToOptions
extends StObject
with ScrollOptions {
/* standard dom */
var left: js.UndefOr[Double] = js.undefined
/* standard dom */
var top: js.UndefOr[Double] = js.undefined
}
object ScrollToOptions {
inline def apply(): ScrollToOptions = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[ScrollToOptions]
}
@scala.inline
implicit open class MutableBuilder[Self <: ScrollToOptions] (val x: Self) extends AnyVal {
inline def setLeft(value: Double): Self = StObject.set(x, "left", value.asInstanceOf[js.Any])
inline def setLeftUndefined: Self = StObject.set(x, "left", js.undefined)
inline def setTop(value: Double): Self = StObject.set(x, "top", value.asInstanceOf[js.Any])
inline def setTopUndefined: Self = StObject.set(x, "top", js.undefined)
}
}