com.olvind.mui.react.mod.TextareaHTMLAttributes.scala Maven / Gradle / Ivy
The newest version!
package com.olvind.mui.react.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
trait TextareaHTMLAttributes[T]
extends StObject
with HTMLAttributes[T] {
var autoComplete: js.UndefOr[String] = js.undefined
var cols: js.UndefOr[Double] = js.undefined
var dirName: js.UndefOr[String] = js.undefined
var disabled: js.UndefOr[Boolean] = js.undefined
var form: js.UndefOr[String] = js.undefined
var maxLength: js.UndefOr[Double] = js.undefined
var minLength: js.UndefOr[Double] = js.undefined
var name: js.UndefOr[String] = js.undefined
@JSName("onChange")
var onChange_TextareaHTMLAttributes: js.UndefOr[ChangeEventHandler[T]] = js.undefined
var readOnly: js.UndefOr[Boolean] = js.undefined
var required: js.UndefOr[Boolean] = js.undefined
var rows: js.UndefOr[Double] = js.undefined
var value: js.UndefOr[String | js.Array[String] | Double] = js.undefined
var wrap: js.UndefOr[String] = js.undefined
}
object TextareaHTMLAttributes {
inline def apply[T](): TextareaHTMLAttributes[T] = {
val __obj = js.Dynamic.literal()
__obj.asInstanceOf[TextareaHTMLAttributes[T]]
}
@scala.inline
implicit open class MutableBuilder[Self <: TextareaHTMLAttributes[?], T] (val x: Self & TextareaHTMLAttributes[T]) extends AnyVal {
inline def setAutoComplete(value: String): Self = StObject.set(x, "autoComplete", value.asInstanceOf[js.Any])
inline def setAutoCompleteUndefined: Self = StObject.set(x, "autoComplete", js.undefined)
inline def setCols(value: Double): Self = StObject.set(x, "cols", value.asInstanceOf[js.Any])
inline def setColsUndefined: Self = StObject.set(x, "cols", js.undefined)
inline def setDirName(value: String): Self = StObject.set(x, "dirName", value.asInstanceOf[js.Any])
inline def setDirNameUndefined: Self = StObject.set(x, "dirName", js.undefined)
inline def setDisabled(value: Boolean): Self = StObject.set(x, "disabled", value.asInstanceOf[js.Any])
inline def setDisabledUndefined: Self = StObject.set(x, "disabled", js.undefined)
inline def setForm(value: String): Self = StObject.set(x, "form", value.asInstanceOf[js.Any])
inline def setFormUndefined: Self = StObject.set(x, "form", js.undefined)
inline def setMaxLength(value: Double): Self = StObject.set(x, "maxLength", value.asInstanceOf[js.Any])
inline def setMaxLengthUndefined: Self = StObject.set(x, "maxLength", js.undefined)
inline def setMinLength(value: Double): Self = StObject.set(x, "minLength", value.asInstanceOf[js.Any])
inline def setMinLengthUndefined: Self = StObject.set(x, "minLength", js.undefined)
inline def setName(value: String): Self = StObject.set(x, "name", value.asInstanceOf[js.Any])
inline def setNameUndefined: Self = StObject.set(x, "name", js.undefined)
inline def setOnChange(value: ChangeEvent[T] => Unit): Self = StObject.set(x, "onChange", js.Any.fromFunction1(value))
inline def setOnChangeUndefined: Self = StObject.set(x, "onChange", js.undefined)
inline def setReadOnly(value: Boolean): Self = StObject.set(x, "readOnly", value.asInstanceOf[js.Any])
inline def setReadOnlyUndefined: Self = StObject.set(x, "readOnly", js.undefined)
inline def setRequired(value: Boolean): Self = StObject.set(x, "required", value.asInstanceOf[js.Any])
inline def setRequiredUndefined: Self = StObject.set(x, "required", js.undefined)
inline def setRows(value: Double): Self = StObject.set(x, "rows", value.asInstanceOf[js.Any])
inline def setRowsUndefined: Self = StObject.set(x, "rows", js.undefined)
inline def setValue(value: String | js.Array[String] | Double): Self = StObject.set(x, "value", value.asInstanceOf[js.Any])
inline def setValueUndefined: Self = StObject.set(x, "value", js.undefined)
inline def setValueVarargs(value: String*): Self = StObject.set(x, "value", js.Array(value*))
inline def setWrap(value: String): Self = StObject.set(x, "wrap", value.asInstanceOf[js.Any])
inline def setWrapUndefined: Self = StObject.set(x, "wrap", js.undefined)
}
}