Interface MutationObserverInit


  • @JsType(isNative=true,
            namespace="<global>")
    public interface MutationObserverInit
    A dictionary interface which describes the configuration of a mutation observer.
    As such, it's primarily used as the type of the options parameter on the MutationObserver.observe(BaseNode, MutationObserverInit) method.
    Author:
    Andrea "Stock" Stocchero
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void setAttributes​(boolean attributes)
      Set to true to watch for changes to the value of attributes on the node or nodes being monitored.
      The default value is false.
      void setCharacterData​(boolean characterData)
      Set to true to monitor the specified target node or subtree for changes to the character data contained within the node or nodes.
      No default value.
      void setCharacterDataOldValue​(boolean characterDataOldValue)
      Set to true to record the previous value of a node's text whenever the text changes on nodes being monitored.
      No default value.
      void setChildList​(boolean childList)
      Set to true to monitor the target node (and, if subtree is true, its descendants) for the addition of new child nodes or removal of existing child nodes.
      The default is false.
      void setSubtree​(boolean subtree)
      Set to true to extend monitoring to the entire subtree of nodes rooted at target.
      The default value is false.
    • Method Detail

      • setAttributes

        @JsProperty
        void setAttributes​(boolean attributes)
        Set to true to watch for changes to the value of attributes on the node or nodes being monitored.
        The default value is false.
        Parameters:
        attributes - true to watch for changes to the value of attributes on the node or nodes being monitored
      • setCharacterData

        @JsProperty
        void setCharacterData​(boolean characterData)
        Set to true to monitor the specified target node or subtree for changes to the character data contained within the node or nodes.
        No default value.
        Parameters:
        characterData - true to monitor the specified target node or subtree for changes to the character data contained within the node or nodes
      • setCharacterDataOldValue

        @JsProperty
        void setCharacterDataOldValue​(boolean characterDataOldValue)
        Set to true to record the previous value of a node's text whenever the text changes on nodes being monitored.
        No default value.
        Parameters:
        characterDataOldValue - true to record the previous value of a node's text whenever the text changes on nodes being monitored
      • setChildList

        @JsProperty
        void setChildList​(boolean childList)
        Set to true to monitor the target node (and, if subtree is true, its descendants) for the addition of new child nodes or removal of existing child nodes.
        The default is false.
        Parameters:
        childList - true to monitor the target node (and, if subtree is true, its descendants) for the addition of new child nodes or removal of existing child nodes
      • setSubtree

        @JsProperty
        void setSubtree​(boolean subtree)
        Set to true to extend monitoring to the entire subtree of nodes rooted at target.
        The default value is false.
        Parameters:
        subtree - true to extend monitoring to the entire subtree of nodes rooted at target