Dart API Reference
dart:html
ImageButtonInputElement
ImageButtonInputElement
class
Either an image which the user can select a coordinate to or a form submit button.
Either an image which the user can select a coordinate to or a form submit button.
Implements:
InputElementBase
Implementors
InputElement
Constructors
ImageButtonInputElement
( )
Instance Properties
alt
String
read/write
formAction
String
read/write
formEnctype
String
read/write
formMethod
String
read/write
formNoValidate
bool
read/write
formTarget
String
read/write
height
int
read/write
src
String
read/write
width
int
read/write
dropzone
String
Inherited
read/write
onMouseMove
ElementStream
<
MouseEvent
>
Inherited
read-only
value
String
Inherited
read/write
onFullscreenError
ElementStream
<
Event
>
Inherited
read-only
onTouchEnter
ElementStream
<
TouchEvent
>
Inherited
read-only
xtag
dynamic
Inherited
read/write
validity
ValidityState
Inherited
read-only
title
String
Inherited
read/write
onKeyPress
ElementStream
<
KeyboardEvent
>
Inherited
read-only
shadowRoot
ShadowRoot
Inherited
read-only
previousElementSibling
Element
Inherited
read-only
onSeeked
ElementStream
<
Event
>
Inherited
read-only
offsetHeight
int
Inherited
read-only
dir
String
Inherited
read/write
autofocus
bool
Inherited
read/write
lang
String
Inherited
read/write
contentEdge
CssRect
Inherited
read-only
onReset
ElementStream
<
Event
>
Inherited
read-only
onPause
ElementStream
<
Event
>
Inherited
read-only
onCut
ElementStream
<
Event
>
Inherited
read-only
onMouseWheel
ElementStream
<
WheelEvent
>
Inherited
read-only
borderEdge
CssRect
Inherited
read-only
onFocus
ElementStream
<
Event
>
Inherited
read-only
onSearch
ElementStream
<
Event
>
Inherited
read-only
onRateChange
ElementStream
<
Event
>
Inherited
read-only
onDrop
ElementStream
<
MouseEvent
>
Inherited
read-only
id
String
Inherited
read/write
onBeforePaste
ElementStream
<
Event
>
Inherited
read-only
onSuspend
ElementStream
<
Event
>
Inherited
read-only
parent
Element
Inherited
read-only
incremental
bool
Inherited
read/write
onResize
ElementStream
<
Event
>
Inherited
read-only
scrollTop
int
Inherited
read/write
contextMenu
MenuElement
Inherited
read/write
indeterminate
bool
Inherited
read/write
onClick
ElementStream
<
MouseEvent
>
Inherited
read-only
onSelectStart
ElementStream
<
Event
>
Inherited
read-only
lastChild
Node
Inherited
read-only
onInput
ElementStream
<
Event
>
Inherited
read-only
onLoad
ElementStream
<
Event
>
Inherited
read-only
onDoubleClick
ElementStream
<
Event
>
Inherited
read-only
onMouseOver
ElementStream
<
MouseEvent
>
Inherited
read-only
nodeName
String
Inherited
read-only
onStalled
ElementStream
<
Event
>
Inherited
read-only
children
List
<
Element
>
Inherited
read/write
on
ElementEvents
Inherited
read-only
dataset
Map
<
String
,
String
>
Inherited
read/write
childNodes
List
<
Node
>
Inherited
read-only
innerHtml
String
Inherited
read/write
onTouchStart
ElementStream
<
TouchEvent
>
Inherited
read-only
onBeforeCut
ElementStream
<
Event
>
Inherited
read-only
documentOffset
Point
Inherited
read-only
name
String
Inherited
read/write
attributes
Map
<
String
,
String
>
Inherited
read/write
localName
String
Inherited
read-only
offsetLeft
int
Inherited
read-only
onPlaying
ElementStream
<
Event
>
Inherited
read-only
clientWidth
int
Inherited
read-only
nextNode
Node
Inherited
read-only
hidden
bool
Inherited
read/write
nextElementSibling
Element
Inherited
read-only
style
CssStyleDeclaration
Inherited
read-only
onChange
ElementStream
<
Event
>
Inherited
read-only
tagName
String
Inherited
read-only
onMouseOut
ElementStream
<
MouseEvent
>
Inherited
read-only
onLoadedMetadata
ElementStream
<
Event
>
Inherited
read-only
isContentEditable
bool
Inherited
read-only
scrollHeight
int
Inherited
read-only
validationMessage
String
Inherited
read-only
onCanPlay
ElementStream
<
Event
>
Inherited
read-only
parentNode
Node
Inherited
read-only
onAbort
ElementStream
<
Event
>
Inherited
read-only
outerHtml
String
Inherited
read-only
onVolumeChange
ElementStream
<
Event
>
Inherited
read-only
clientLeft
int
Inherited
read-only
onSelect
ElementStream
<
Event
>
Inherited
read-only
onSubmit
ElementStream
<
Event
>
Inherited
read-only
nodes
List
<
Node
>
Inherited
read/write
draggable
bool
Inherited
read/write
translate
bool
Inherited
read/write
onContextMenu
ElementStream
<
MouseEvent
>
Inherited
read-only
spellcheck
bool
Inherited
read/write
onTimeUpdate
ElementStream
<
Event
>
Inherited
read-only
labels
List
<
Node
>
Inherited
read-only
onTouchMove
ElementStream
<
TouchEvent
>
Inherited
read-only
classes
CssClassSet
Inherited
read/write
onEmptied
ElementStream
<
Event
>
Inherited
read-only
onKeyUp
ElementStream
<
KeyboardEvent
>
Inherited
read-only
namespaceUri
String
Inherited
read-only
willValidate
bool
Inherited
read-only
onCopy
ElementStream
<
Event
>
Inherited
read-only
onTouchCancel
ElementStream
<
TouchEvent
>
Inherited
read-only
onError
ElementStream
<
Event
>
Inherited
read-only
onMouseEnter
ElementStream
<
MouseEvent
>
Inherited
read-only
className
String
Inherited
read/write
onMouseUp
ElementStream
<
MouseEvent
>
Inherited
read-only
nodeValue
String
Inherited
read-only
baseUri
String
Inherited
read-only
onDragLeave
ElementStream
<
MouseEvent
>
Inherited
read-only
onDragEnter
ElementStream
<
MouseEvent
>
Inherited
read-only
paddingEdge
CssRect
Inherited
read-only
onDragOver
ElementStream
<
MouseEvent
>
Inherited
read-only
contentEditable
String
Inherited
read/write
onDrag
ElementStream
<
MouseEvent
>
Inherited
read-only
onKeyDown
ElementStream
<
KeyboardEvent
>
Inherited
read-only
ownerDocument
Document
Inherited
read-only
onLoadedData
ElementStream
<
Event
>
Inherited
read-only
onBlur
ElementStream
<
Event
>
Inherited
read-only
onDragStart
ElementStream
<
MouseEvent
>
Inherited
read-only
offsetParent
Element
Inherited
read-only
onTouchEnd
ElementStream
<
TouchEvent
>
Inherited
read-only
scrollLeft
int
Inherited
read/write
onBeforeCopy
ElementStream
<
Event
>
Inherited
read-only
onTouchLeave
ElementStream
<
TouchEvent
>
Inherited
read-only
onInvalid
ElementStream
<
Event
>
Inherited
read-only
tabIndex
int
Inherited
read/write
client
Rectangle
Inherited
read-only
onSeeking
ElementStream
<
Event
>
Inherited
read-only
onEnded
ElementStream
<
Event
>
Inherited
read-only
onPaste
ElementStream
<
Event
>
Inherited
read-only
scrollWidth
int
Inherited
read-only
offsetTop
int
Inherited
read-only
onMouseLeave
ElementStream
<
MouseEvent
>
Inherited
read-only
text
String
Inherited
read/write
clientTop
int
Inherited
read-only
previousNode
Node
Inherited
read-only
onPlay
ElementStream
<
Event
>
Inherited
read-only
onWaiting
ElementStream
<
Event
>
Inherited
read-only
marginEdge
CssRect
Inherited
read-only
firstChild
Node
Inherited
read-only
disabled
bool
Inherited
read/write
onMouseDown
ElementStream
<
MouseEvent
>
Inherited
read-only
clientHeight
int
Inherited
read-only
onDurationChange
ElementStream
<
Event
>
Inherited
read-only
nodeType
int
Inherited
read-only
onDragEnd
ElementStream
<
MouseEvent
>
Inherited
read-only
onFullscreenChange
ElementStream
<
Event
>
Inherited
read-only
offset
Rectangle
Inherited
read-only
onScroll
ElementStream
<
Event
>
Inherited
read-only
offsetWidth
int
Inherited
read-only
onTransitionEnd
ElementStream
<
TransitionEvent
>
Inherited
read-only
onCanPlayThrough
ElementStream
<
Event
>
Inherited
read-only
Instance Methods
scrollIntoView
Inherited
( [
ScrollAlignment
alignment
] ) →
void
Scrolls this element into view.
setAttributeNS
Inherited
(
String
namespaceURI
,
String
qualifiedName
,
String
value
) →
void
remove
Inherited
( ) →
void
Removes this node from the DOM.
contains
Inherited
(
Node
other
) →
bool
Returns true if this node contains the specified node.
requestPointerLock
Inherited
( ) →
void
attached
Inherited
( ) →
void
Called by the DOM when this element has been inserted into the live document.
getAttributeNS
Inherited
(
String
namespaceURI
,
String
localName
) →
String
queryAll
Inherited
(
String
relativeSelectors
) →
ElementList
<
Element
>
Alias for
querySelectorAll
. Note this function is deprecated because its semantics will be changing in the future.
getBoundingClientRect
Inherited
( ) →
Rectangle
Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
setCustomValidity
Inherited
(
String
error
) →
void
insertAllBefore
Inherited
(
Iterable
<
Node
>
newNodes
,
Node
refChild
) →
Node
Inserts all of the nodes into this node directly before refChild.
insertBefore
Inherited
(
Node
newChild
,
Node
refChild
) →
Node
Inserts all of the nodes into this node directly before refChild.
blur
Inherited
( ) →
void
leftView
Inherited
( ) →
void
Deprecated*: override
detached
instead.
matches
Inherited
(
String
selectors
) →
bool
createFragment
Inherited
(
String
html
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
} ) →
DocumentFragment
Create a DocumentFragment from the HTML fragment and ensure that it follows the sanitization rules specified by the validator or treeSanitizer.
requestFullscreen
Inherited
( ) →
void
clone
Inherited
(
bool
deep
) →
Node
Returns a copy of this node.
attributeChanged
Inherited
(
String
name
,
String
oldValue
,
String
newValue
) →
void
Called by the DOM whenever an attribute on this has been changed.
append
Inherited
(
Node
newChild
) →
Node
Adds a node to the end of the child
nodes
list of this node.
getElementsByClassName
Inherited
(
String
classNames
) →
List
<
Node
>
Returns a list of nodes with the given class name inside this element.
querySelectorAll
Inherited
(
String
selectors
) →
ElementList
<
Element
>
Finds all descendent elements of this element that match the specified group of selectors.
replaceWith
Inherited
(
Node
otherNode
) →
Node
Replaces this node with another node.
offsetTo
Inherited
(
Element
parent
) →
Point
Provides the offset of this element's
borderEdge
relative to the specified parent.
getAttribute
Inherited
(
String
name
) →
String
appendHtml
Inherited
(
String
text
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
} ) →
void
Parses the specified text as HTML and adds the resulting node after the last child of this element.
dispatchEvent
Inherited
(
Event
event
) →
bool
createShadowRoot
Inherited
( ) →
ShadowRoot
appendText
Inherited
(
String
text
) →
void
Adds the specified text after the last child of this element.
click
Inherited
( ) →
void
checkValidity
Inherited
( ) →
bool
enteredView
Inherited
( ) →
void
Deprecated*: override
attached
instead.
addEventListener
Inherited
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
] ) →
void
animate
Inherited
(
Object
effect
, [
Object
timing
] ) →
AnimationPlayer
setAttribute
Inherited
(
String
name
,
String
value
) →
void
getAnimationPlayers
Inherited
( ) →
List
<
AnimationPlayer
>
insertAdjacentText
Inherited
(
String
where
,
String
text
) →
void
query
Inherited
(
String
relativeSelectors
) →
Element
Alias for
querySelector
. Note this function is deprecated because its semantics will be changing in the future.
insertAdjacentHtml
Inherited
(
String
where
,
String
html
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
} ) →
void
Parses text as an HTML fragment and inserts it into the DOM at the specified location.
insertAdjacentElement
Inherited
(
String
where
,
Element
element
) →
Element
hasChildNodes
Inherited
( ) →
bool
Returns true if this node has any children.
getDestinationInsertionPoints
Inherited
( ) →
List
<
Node
>
Returns a list of shadow DOM insertion points to which this element is distributed.
getComputedStyle
Inherited
( [
String
pseudoElement
] ) →
CssStyleDeclaration
The set of all CSS values applied to this element, including inherited and default values.
querySelector
Inherited
(
String
selectors
) →
Element
Finds the first descendant element of this element that matches the specified group of selectors.
getNamespacedAttributes
Inherited
(
String
namespace
) →
Map
<
String
,
String
>
Gets a map for manipulating the attributes of a particular namespace.
setInnerHtml
Inherited
(
String
html
, {
NodeValidator
validator
,
NodeTreeSanitizer
treeSanitizer
} ) →
void
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.
removeEventListener
Inherited
(
String
type
,
dynamic
listener
(
Event
event
)
, [
bool
useCapture
] ) →
void
detached
Inherited
( ) →
void
Called by the DOM when this element has been removed from the live document.
focus
Inherited
( ) →
void
matchesWithAncestors
Inherited
(
String
selectors
) →
bool
Checks if this element or any of its parents match the CSS selectors.
getClientRects
Inherited
( ) →
List
<
Rectangle
>
Returns a list of bounding rectangles for each box associated with this element.