W3cubDocs

/Dart 2

DiscardElement class

Inheritance
Annotations
  • @Native("SVGDiscardElement")

Constructors

DiscardElement.created()
Constructor instantiated by the DOM when a custom element has been created. [...]

Properties

accessibleNodeAccessibleNode
final, inherited
assignedSlotSlotElement
final, inherited
attributesMap<String, String>
read / write, inherited
All attributes on this element. [...]
baseUriString
@JSName('baseURI'), final, inherited
borderEdgeCssRect
read-only, inherited
Access the dimensions and position of this element's content + padding + border box. [...]
childNodesList<Node>
@Creates('NodeList'), @Returns('NodeList'), final, inherited
A list of this node's children. [...]
childrenList<Element>
read / write, inherited
List of the direct children of this element. [...]
classesCssClassSet
read / write, inherited
The set of CSS classes applied to this element. [...]
classNameString
read / write, inherited
clientRectangle<num>
read-only, inherited
Gets the position of this element relative to the client area of the page.
clientHeightint
final, inherited
clientLeftint
final, inherited
clientTopint
final, inherited
clientWidthint
final, inherited
computedNameString
final, inherited
computedRoleString
final, inherited
contentEdgeCssRect
read-only, inherited
Access this element's content position. [...]
contentEditableString
read / write, inherited
datasetMap<String, String>
read / write, inherited
Allows access to all custom data attributes (data-*) set on this element. [...]
dirString
read / write, inherited
documentOffsetPoint<num>
read-only, inherited
Provides the coordinates of the element relative to the top of the document. [...]
draggablebool
read / write, inherited
Indicates whether the element can be dragged and dropped. [...]
firstChildNode
final, inherited
The first child of this node. [...]
hashCodeint
read-only, inherited
The hash code for this object. [...]
hiddenbool
read / write, inherited
Indicates whether the element is not relevant to the page's current state. [...]
idString
read / write, inherited
inertbool
read / write, inherited
innerHtmlString
read / write, inherited
Parses the HTML fragment and sets it as the contents of this element. [...]
inputModeString
read / write, inherited
isConnectedbool
final, inherited
isContentEditablebool
read-only, inherited
langString
read / write, inherited
lastChildNode
final, inherited
The last child of this node. [...]
localNameString
@Returns('String'), read-only, inherited
marginEdgeCssRect
read-only, inherited
Access the dimensions and position of this element's content + padding + border + margin box. [...]
namespaceUriString
read-only, inherited
A URI that identifies the XML namespace of this element. [...]
nextElementSiblingElement
final, inherited
nextNodeNode
@JSName('nextSibling'), final, inherited
The next sibling node. [...]
nodeNameString
final, inherited
The name of this node. [...]
nodesList<Node>
read / write, inherited
A modifiable list of this node's children.
nodeTypeint
final, inherited
The type of node. [...]
nodeValueString
final, inherited
The value of this node. [...]
nonceString
read / write, inherited
offsetRectangle<num>
read-only, inherited
Gets the offset of this element relative to its offsetParent.
offsetHeightint
read-only, inherited
offsetLeftint
read-only, inherited
offsetParentElement
final, inherited
offsetTopint
read-only, inherited
offsetWidthint
read-only, inherited
onElementEvents
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
onAbortElementStream<Event>
read-only, inherited
Stream of abort events handled by this Element.
onBeforeCopyElementStream<Event>
read-only, inherited
Stream of beforecopy events handled by this Element.
onBeforeCutElementStream<Event>
read-only, inherited
Stream of beforecut events handled by this Element.
onBeforePasteElementStream<Event>
read-only, inherited
Stream of beforepaste events handled by this Element.
onBlurElementStream<Event>
read-only, inherited
Stream of blur events handled by this Element.
onCanPlayElementStream<Event>
read-only, inherited
onCanPlayThroughElementStream<Event>
read-only, inherited
onChangeElementStream<Event>
read-only, inherited
Stream of change events handled by this Element.
onClickElementStream<MouseEvent>
read-only, inherited
Stream of click events handled by this Element.
onContextMenuElementStream<MouseEvent>
read-only, inherited
Stream of contextmenu events handled by this Element.
onCopyElementStream<ClipboardEvent>
read-only, inherited
Stream of copy events handled by this Element.
onCutElementStream<ClipboardEvent>
read-only, inherited
Stream of cut events handled by this Element.
onDoubleClickElementStream<Event>
read-only, inherited
Stream of doubleclick events handled by this Element.
onDragElementStream<MouseEvent>
read-only, inherited
A stream of drag events fired when this element currently being dragged. [...]
onDragEndElementStream<MouseEvent>
read-only, inherited
A stream of dragend events fired when this element completes a drag operation. [...]
onDragEnterElementStream<MouseEvent>
read-only, inherited
A stream of dragenter events fired when a dragged object is first dragged over this element. [...]
onDragLeaveElementStream<MouseEvent>
read-only, inherited
A stream of dragleave events fired when an object being dragged over this element leaves this element's target area. [...]
onDragOverElementStream<MouseEvent>
read-only, inherited
A stream of dragover events fired when a dragged object is currently being dragged over this element. [...]
onDragStartElementStream<MouseEvent>
read-only, inherited
A stream of dragstart events fired when this element starts being dragged. [...]
onDropElementStream<MouseEvent>
read-only, inherited
A stream of drop events fired when a dragged object is dropped on this element. [...]
onDurationChangeElementStream<Event>
read-only, inherited
onEmptiedElementStream<Event>
read-only, inherited
onEndedElementStream<Event>
read-only, inherited
onErrorElementStream<Event>
read-only, inherited
Stream of error events handled by this Element.
onFocusElementStream<Event>
read-only, inherited
Stream of focus events handled by this Element.
onFullscreenChangeElementStream<Event>
read-only, inherited
Stream of fullscreenchange events handled by this Element.
onFullscreenErrorElementStream<Event>
read-only, inherited
Stream of fullscreenerror events handled by this Element.
onInputElementStream<Event>
read-only, inherited
Stream of input events handled by this Element.
onInvalidElementStream<Event>
read-only, inherited
Stream of invalid events handled by this Element.
onKeyDownElementStream<KeyboardEvent>
read-only, inherited
Stream of keydown events handled by this Element.
onKeyPressElementStream<KeyboardEvent>
read-only, inherited
Stream of keypress events handled by this Element.
onKeyUpElementStream<KeyboardEvent>
read-only, inherited
Stream of keyup events handled by this Element.
onLoadElementStream<Event>
read-only, inherited
Stream of load events handled by this Element.
onLoadedDataElementStream<Event>
read-only, inherited
onLoadedMetadataElementStream<Event>
read-only, inherited
onMouseDownElementStream<MouseEvent>
read-only, inherited
Stream of mousedown events handled by this Element.
onMouseEnterElementStream<MouseEvent>
read-only, inherited
Stream of mouseenter events handled by this Element.
onMouseLeaveElementStream<MouseEvent>
read-only, inherited
Stream of mouseleave events handled by this Element.
onMouseMoveElementStream<MouseEvent>
read-only, inherited
Stream of mousemove events handled by this Element.
onMouseOutElementStream<MouseEvent>
read-only, inherited
Stream of mouseout events handled by this Element.
onMouseOverElementStream<MouseEvent>
read-only, inherited
Stream of mouseover events handled by this Element.
onMouseUpElementStream<MouseEvent>
read-only, inherited
Stream of mouseup events handled by this Element.
onMouseWheelElementStream<WheelEvent>
read-only, inherited
Stream of mousewheel events handled by this Element.
onPasteElementStream<ClipboardEvent>
read-only, inherited
Stream of paste events handled by this Element.
onPauseElementStream<Event>
read-only, inherited
onPlayElementStream<Event>
read-only, inherited
onPlayingElementStream<Event>
read-only, inherited
onRateChangeElementStream<Event>
read-only, inherited
onResetElementStream<Event>
read-only, inherited
Stream of reset events handled by this Element.
onResizeElementStream<Event>
read-only, inherited
onScrollElementStream<Event>
read-only, inherited
Stream of scroll events handled by this Element.
onSearchElementStream<Event>
read-only, inherited
Stream of search events handled by this Element.
onSeekedElementStream<Event>
read-only, inherited
onSeekingElementStream<Event>
read-only, inherited
onSelectElementStream<Event>
read-only, inherited
Stream of select events handled by this Element.
onSelectStartElementStream<Event>
read-only, inherited
Stream of selectstart events handled by this Element.
onStalledElementStream<Event>
read-only, inherited
onSubmitElementStream<Event>
read-only, inherited
Stream of submit events handled by this Element.
onSuspendElementStream<Event>
read-only, inherited
onTimeUpdateElementStream<Event>
read-only, inherited
onTouchCancelElementStream<TouchEvent>
read-only, inherited
Stream of touchcancel events handled by this Element.
onTouchEndElementStream<TouchEvent>
read-only, inherited
Stream of touchend events handled by this Element.
onTouchEnterElementStream<TouchEvent>
read-only, inherited
Stream of touchenter events handled by this Element.
onTouchLeaveElementStream<TouchEvent>
read-only, inherited
Stream of touchleave events handled by this Element.
onTouchMoveElementStream<TouchEvent>
read-only, inherited
Stream of touchmove events handled by this Element.
onTouchStartElementStream<TouchEvent>
read-only, inherited
Stream of touchstart events handled by this Element.
onTransitionEndElementStream<TransitionEvent>
@SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.FIREFOX), @SupportedBrowser(SupportedBrowser.IE, '10'), @SupportedBrowser(SupportedBrowser.SAFARI), read-only, inherited
Stream of transitionend events handled by this Element.
onVolumeChangeElementStream<Event>
read-only, inherited
onWaitingElementStream<Event>
read-only, inherited
onWheelElementStream<WheelEvent>
read-only, inherited
outerHtmlString
read-only, inherited
ownerDocumentDocument
final, inherited
The document this node belongs to. [...]
ownerSvgElementSvgSvgElement
@JSName('ownerSVGElement'), final, inherited
paddingEdgeCssRect
read-only, inherited
Access the dimensions and position of this element's content + padding box. [...]
parentElement
@JSName('parentElement'), final, inherited
The parent element of this node. [...]
parentNodeNode
final, inherited
The parent node of this node. [...]
previousElementSiblingElement
final, inherited
previousNodeNode
@JSName('previousSibling'), final, inherited
The previous sibling node. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.
scrollHeightint
read-only, inherited
scrollLeftint
read / write, inherited
scrollTopint
read / write, inherited
scrollWidthint
read-only, inherited
shadowRootShadowRoot
@SupportedBrowser(SupportedBrowser.CHROME, '25'), read-only, inherited
The shadow root of this shadow host. [...]
slotString
read / write, inherited
spellcheckbool
read / write, inherited
styleCssStyleDeclaration
final, inherited
styleMapStylePropertyMap
final, inherited
tabIndexint
read / write, inherited
tagNameString
final, inherited
textString
@JSName('textContent'), read / write, inherited
All text within this node and its descendents. [...]
titleString
read / write, inherited
translatebool
read / write, inherited
Specifies whether this element's text content changes when the page is localized. [...]
viewportElementSvgElement
final, inherited

Methods

addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
after(Object nodes) → void
inherited
animate(Iterable<Map<String, dynamic>> frames, [ dynamic timing ]) → Animation
@SupportedBrowser(SupportedBrowser.CHROME, '36'), inherited
  • Creates a new AnimationEffect object whose target element is the object
  • on which the method is called, and calls the play() method of the
  • AnimationTimeline object of the document timeline of the node document
  • of the element, passing the newly created AnimationEffect as the argument
  • to the method. Returns an Animation for the effect.
  • Examples
  • var animation = elem.animate([{"opacity": 75}, {"opacity": 0}], 200);
    
  • var animation = elem.animate([
    
  •   {"transform": "translate(100px, -100%)"},
    
  •   {"transform" : "translate(400px, 500px)"}
    
  • ], 1500);
    
  • The frames parameter is an Iterable, where the
  • map entries specify CSS animation effects. The
  • timing paramter can be a double, representing the number of milliseconds
  • for the transition, or a Map with fields corresponding to those
  • of the Timing object.
  • append(Node node) → Node
    @JSName('appendChild'), inherited
    Adds a node to the end of the child nodes list of this node. [...]
    appendHtml(String text, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
    inherited
    Parses the specified text as HTML and adds the resulting node after the last child of this element.
    appendText(String text) → void
    inherited
    Adds the specified text after the last child of this element.
    attached() → void
    inherited
    Called by the DOM when this element has been inserted into the live document. [...]
    attachShadow(Map shadowRootInitDict) → ShadowRoot
    inherited
    attributeChanged(String name, String oldValue, String newValue) → void
    inherited
    Called by the DOM whenever an attribute on this has been changed.
    before(Object nodes) → void
    inherited
    blur() → void
    inherited
    click() → void
    inherited
    clone(bool deep) → Node
    @JSName('cloneNode'), inherited
    Returns a copy of this node. [...]
    closest(String selectors) → Element
    inherited
    contains(Node other) → bool
    inherited
    Returns true if this node contains the specified node. [...]
    createFragment(String svg, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → DocumentFragment
    inherited
    Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer. [...]
    createShadowRoot() → ShadowRoot
    @SupportedBrowser(SupportedBrowser.CHROME, '25'), inherited
    Creates a new shadow root for this shadow host. [...]
    detached() → void
    inherited
    Called by the DOM when this element has been removed from the live document. [...]
    dispatchEvent(Event event) → bool
    inherited
    enteredView() → void
    inherited
    Deprecated*: override attached instead.
    focus() → void
    inherited
    getAnimations() → List<Animation>
    inherited
    getAttribute(String name) → String
    inherited
    getAttributeNames() → List<String>
    inherited
    getAttributeNS(String namespaceURI, String localName) → String
    inherited
    getBoundingClientRect() → Rectangle<num>
    @Creates('_DomRect'), @Returns('_DomRect|Null'), inherited
    Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border. [...]
    getClientRects() → List<Rectangle<num>>
    inherited
    getComputedStyle([String pseudoElement ]) → CssStyleDeclaration
    inherited
    The set of all CSS values applied to this element, including inherited and default values. [...]
    getDestinationInsertionPoints() → List<Node>
    @Creates('NodeList'), @Returns('NodeList|Null'), inherited
    Returns a list of shadow DOM insertion points to which this element is distributed. [...]
    getElementsByClassName(String classNames) → List<Node>
    @Creates('NodeList|HtmlCollection'), @Returns('NodeList|HtmlCollection'), inherited
    Returns a list of nodes with the given class name inside this element. [...]
    getNamespacedAttributes(String namespace) → Map<String, String>
    inherited
    Gets a map for manipulating the attributes of a particular namespace. [...]
    getRootNode([Map options ]) → Node
    inherited
    hasChildNodes() → bool
    inherited
    Returns true if this node has any children. [...]
    hasPointerCapture(int pointerId) → bool
    inherited
    insertAdjacentElement(String where, Element element) → Element
    inherited
    Inserts element into the DOM at the specified location. [...]
    insertAdjacentHtml(String where, String text, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
    inherited
    Parses text as an HTML fragment and inserts it into the DOM at the specified location. [...]
    insertAdjacentText(String where, String text) → void
    inherited
    Inserts text into the DOM at the specified location. [...]
    insertAllBefore(Iterable<Node> newNodes, Node refChild) → Node
    inherited
    Inserts all of the nodes into this node directly before refChild. [...]
    insertBefore(Node node, Node child) → Node
    inherited
    Inserts all of the nodes into this node directly before refChild. [...]
    leftView() → void
    inherited
    Deprecated*: override detached instead.
    matches(String selectors) → bool
    inherited
    Checks if this element matches the CSS selectors.
    matchesWithAncestors(String selectors) → bool
    inherited
    Checks if this element or any of its parents match the CSS selectors.
    noSuchMethod(Invocation invocation) → dynamic
    inherited
    Invoked when a non-existent method or property is accessed. [...]
    offsetTo(Element parent) → Point<num>
    inherited
    Provides the offset of this element's borderEdge relative to the specified parent. [...]
    querySelector(String selectors) → Element
    inherited
    Finds the first descendant element of this element that matches the specified group of selectors. [...]
    querySelectorAll<T extends Element>(String selectors) → ElementList<T>
    inherited
    Finds all descendent elements of this element that match the specified group of selectors. [...]
    releasePointerCapture(int pointerId) → void
    inherited
    remove() → void
    inherited
    Removes this node from the DOM.
    removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
    inherited
    replaceWith(Node otherNode) → Node
    inherited
    Replaces this node with another node.
    requestFullscreen() → void
    @JSName('webkitRequestFullscreen'), @SupportedBrowser(SupportedBrowser.CHROME), @SupportedBrowser(SupportedBrowser.SAFARI), inherited
    Displays this element fullscreen. [...]
    requestPointerLock() → void
    inherited
    scroll([dynamic options_OR_x, num y ]) → void
    inherited
    scrollBy([dynamic options_OR_x, num y ]) → void
    inherited
    scrollIntoView([ScrollAlignment alignment ]) → void
    inherited
    Scrolls this element into view. [...]
    scrollTo([dynamic options_OR_x, num y ]) → void
    inherited
    setApplyScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
    inherited
    setAttribute(String name, String value) → void
    inherited
    setAttributeNS(String namespaceURI, String name, String value) → void
    inherited
    setDistributeScroll(ScrollStateCallback scrollStateCallback, String nativeScrollBehavior) → void
    inherited
    setInnerHtml(String html, { NodeValidator validator, NodeTreeSanitizer treeSanitizer }) → void
    inherited
    Parses the HTML fragment and sets it as the contents of this element. This ensures that the generated content follows the sanitization rules specified by the validator or treeSanitizer. [...]
    setPointerCapture(int pointerId) → void
    inherited
    toString() → String
    inherited
    The string representation of this element. [...]

    Operators

    operator ==(dynamic other) → bool
    inherited
    The equality operator. [...]

    © 2012 the Dart project authors
    Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
    https://api.dartlang.org/stable/2.0.0/dart-svg/DiscardElement-class.html