com.olvind.mui.react.mod.DialogHTMLAttributes.scala Maven / Gradle / Ivy
package com.olvind.mui.react.mod
import org.scalajs.dom.Event
import slinky.core.SyntheticEvent
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait DialogHTMLAttributes[T]
extends StObject
with HTMLAttributes[T] {
var onCancel: js.UndefOr[ReactEventHandler[T]] = js.undefined
var onClose: js.UndefOr[ReactEventHandler[T]] = js.undefined
var open: js.UndefOr[Boolean] = js.undefined
}
object DialogHTMLAttributes {
inline def apply[T](): DialogHTMLAttributes[T] = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[DialogHTMLAttributes[T]]
}
@scala.inline
implicit open class MutableBuilder[Self <: DialogHTMLAttributes[?], T] (val x: Self & DialogHTMLAttributes[T]) extends AnyVal {
inline def setOnCancel(value: SyntheticEvent[Event, T] => Unit): Self = StObject.set(x, "onCancel", js.Any.fromFunction1(value))
inline def setOnCancelUndefined: Self = StObject.set(x, "onCancel", js.undefined)
inline def setOnClose(value: SyntheticEvent[Event, T] => Unit): Self = StObject.set(x, "onClose", js.Any.fromFunction1(value))
inline def setOnCloseUndefined: Self = StObject.set(x, "onClose", js.undefined)
inline def setOpen(value: Boolean): Self = StObject.set(x, "open", value.asInstanceOf[js.Any])
inline def setOpenUndefined: Self = StObject.set(x, "open", js.undefined)
}
}