MutationObserverInit

@JSType
trait MutationObserverInit extends Object

MutationObserverInit is an object which can specify the following properties: NOTE: At the very least, childList, attributes, or characterDatamust be set to true. Otherwise, "An invalid or illegal string was specified" error is thrown.

Companion:
object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

@ExposedJSMember @JSOptional
var attributeFilter: UndefOr[Array[String]]

Set to an array of attribute local names (without namespace) if not all attribute mutations need to be observed.

Set to an array of attribute local names (without namespace) if not all attribute mutations need to be observed.

@ExposedJSMember @JSOptional
var attributeOldValue: UndefOr[Boolean]

Set to true if attributes is set to true and target's attribute value before the mutation needs to be recorded.

Set to true if attributes is set to true and target's attribute value before the mutation needs to be recorded.

@ExposedJSMember @JSOptional
var attributes: UndefOr[Boolean]

Set to true if mutations to target's attributes are to be observed.

Set to true if mutations to target's attributes are to be observed.

@ExposedJSMember @JSOptional
var characterData: UndefOr[Boolean]

Set to true if mutations to target's data are to be observed.

Set to true if mutations to target's data are to be observed.

@ExposedJSMember @JSOptional
var characterDataOldValue: UndefOr[Boolean]

Set to true if characterData is set to true and target's data before the mutation needs to be recorded.

Set to true if characterData is set to true and target's data before the mutation needs to be recorded.

@ExposedJSMember @JSOptional
var childList: UndefOr[Boolean]

Set to true if additions and removals of the target node's child elements (including text nodes) are to be observed.

Set to true if additions and removals of the target node's child elements (including text nodes) are to be observed.

@ExposedJSMember @JSOptional
var subtree: UndefOr[Boolean]

Set to true if mutations to not just target, but also target's descendants are to be observed.

Set to true if mutations to not just target, but also target's descendants are to be observed.