Similar to TextInputElement, but on platforms where search is styled
differently this will get the search style.
Use supported to check if this is supported on the current platform.
- Annotations
- SupportedBrowser(SupportedBrowser.CHROME)
- SupportedBrowser(SupportedBrowser.FIREFOX)
- SupportedBrowser(SupportedBrowser.IE, '10')
- SupportedBrowser(SupportedBrowser.SAFARI)
- Implements
-
- Implemented by
Static Properties
-
bool
supported
-
read-only
Returns true if this input type is supported on the current platform.
Properties
-
String
dirName
-
read / write
-
Element
list
-
read-only
-
String
dropzone
-
read / write
, inherited
-
bool
readOnly
-
read / write
, inherited
-
ElementStream<MouseEvent>
onMouseMove
-
read-only
, inherited
Stream of mousemove events handled by this [Element].
-
String
value
-
read / write
, inherited
-
ElementStream<Event>
onFullscreenError
-
read-only
, inherited
Stream of fullscreenerror events handled by this [Element].
-
ElementStream<TouchEvent>
onTouchEnter
-
read-only
, inherited
Stream of touchenter events handled by this [Element].
-
dynamic
xtag
-
read / write
, inherited
Experimental support for web components. This field stores a
reference to the component implementation. It was inspired by Mozilla's
x-tags project. Please note: in the future it may be possible to
extend Element from your class, in which case this field will be
deprecated.
-
ValidityState
validity
-
read-only
, inherited
-
String
title
-
read / write
, inherited
-
ShadowRoot
shadowRoot
-
read-only
, inherited
-
ElementStream<KeyboardEvent>
onKeyPress
-
read-only
, inherited
Stream of keypress events handled by this [Element].
-
Element
previousElementSibling
-
read-only
, inherited
-
ElementStream<Event>
onSeeked
-
read-only
, inherited
-
int
offsetHeight
-
read-only
, inherited
-
String
dir
-
read / write
, inherited
-
bool
autofocus
-
read / write
, inherited
-
int
selectionEnd
-
read / write
, inherited
-
String
placeholder
-
read / write
, inherited
-
String
lang
-
read / write
, inherited
-
CssRect
contentEdge
-
read-only
, inherited
Access this element's content position.
-
ElementStream<Event>
onReset
-
read-only
, inherited
Stream of reset events handled by this [Element].
-
ElementStream<Event>
onPause
-
read-only
, inherited
-
ElementStream<Event>
onCut
-
read-only
, inherited
Stream of cut events handled by this [Element].
-
ElementStream<WheelEvent>
onMouseWheel
-
read-only
, inherited
Stream of mousewheel events handled by this [Element].
-
CssRect
borderEdge
-
read-only
, inherited
Access the dimensions and position of this element's content + padding +
border box.
-
ElementStream<Event>
onFocus
-
read-only
, inherited
Stream of focus events handled by this [Element].
-
String
autocomplete
-
read / write
, inherited
-
ElementStream<Event>
onSearch
-
read-only
, inherited
Stream of search events handled by this [Element].
-
ElementStream<Event>
onRateChange
-
read-only
, inherited
-
ElementStream<MouseEvent>
onDrop
-
read-only
, inherited
A stream of drop events fired when a dragged object is dropped on this
element.
-
String
id
-
read / write
, inherited
-
ElementStream<Event>
onBeforePaste
-
read-only
, inherited
Stream of beforepaste events handled by this [Element].
-
ElementStream<Event>
onSuspend
-
read-only
, inherited
-
Element
parent
-
read-only
, inherited
The parent element of this node.
-
int
maxLength
-
read / write
, inherited
-
bool
incremental
-
read / write
, inherited
-
ElementStream<Event>
onResize
-
read-only
, inherited
-
int
size
-
read / write
, inherited
-
int
scrollTop
-
read / write
, inherited
-
read / write
, inherited
-
ElementStream<MouseEvent>
onClick
-
read-only
, inherited
Stream of click events handled by this [Element].
-
bool
indeterminate
-
read / write
, inherited
-
ElementStream<Event>
onSelectStart
-
read-only
, inherited
Stream of selectstart events handled by this [Element].
-
Node
lastChild
-
read-only
, inherited
The last child of this node.
-
ElementStream<Event>
onInput
-
read-only
, inherited
Stream of input events handled by this [Element].
-
ElementStream<Event>
onDoubleClick
-
read-only
, inherited
Stream of doubleclick events handled by this [Element].
-
ElementStream<Event>
onLoad
-
read-only
, inherited
Stream of load events handled by this [Element].
-
ElementStream<MouseEvent>
onMouseOver
-
read-only
, inherited
Stream of mouseover events handled by this [Element].
-
String
pattern
-
read / write
, inherited
-
String
nodeName
-
read-only
, inherited
The name of this node.
-
ElementStream<Event>
onStalled
-
read-only
, inherited
-
int
selectionStart
-
read / write
, inherited
-
List<Element>
children
-
read / write
, inherited
List of the direct children of this element.
-
ElementEvents
on
-
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.
-
Map<String,String>
dataset
-
read / write
, inherited
Allows access to all custom data attributes (data-*) set on this element.
-
List<Node>
childNodes
-
read-only
, inherited
A list of this node's children.
-
String
innerHtml
-
read / write
, inherited
-
ElementStream<TouchEvent>
onTouchStart
-
read-only
, inherited
Stream of touchstart events handled by this [Element].
-
ElementStream<Event>
onBeforeCut
-
read-only
, inherited
Stream of beforecut events handled by this [Element].
-
Point
documentOffset
-
read-only
, inherited
Provides the coordinates of the element relative to the top of the
document.
-
String
name
-
read / write
, inherited
-
Map<String,String>
attributes
-
read / write
, inherited
All attributes on this element.
-
String
localName
-
read-only
, inherited
-
int
offsetLeft
-
read-only
, inherited
-
ElementStream<Event>
onPlaying
-
read-only
, inherited
-
int
clientWidth
-
read-only
, inherited
-
Node
nextNode
-
read-only
, inherited
The next sibling node.
-
bool
hidden
-
read / write
, inherited
-
Element
nextElementSibling
-
read-only
, inherited
-
CssStyleDeclaration
style
-
read-only
, inherited
-
ElementStream<Event>
onChange
-
read-only
, inherited
Stream of change events handled by this [Element].
-
String
tagName
-
read-only
, inherited
-
ElementStream<MouseEvent>
onMouseOut
-
read-only
, inherited
Stream of mouseout events handled by this [Element].
-
ElementStream<Event>
onLoadedMetadata
-
read-only
, inherited
-
bool
isContentEditable
-
read-only
, inherited
-
int
scrollHeight
-
read-only
, inherited
-
String
validationMessage
-
read-only
, inherited
-
ElementStream<Event>
onCanPlay
-
read-only
, inherited
-
Node
parentNode
-
read-only
, inherited
The parent node of this node.
-
ElementStream<Event>
onAbort
-
read-only
, inherited
Stream of abort events handled by this [Element].
-
String
outerHtml
-
read-only
, inherited
-
ElementStream<Event>
onVolumeChange
-
read-only
, inherited
-
int
clientLeft
-
read-only
, inherited
-
ElementStream<Event>
onSelect
-
read-only
, inherited
Stream of select events handled by this [Element].
-
ElementStream<Event>
onSubmit
-
read-only
, inherited
Stream of submit events handled by this [Element].
-
List<Node>
nodes
-
read / write
, inherited
A modifiable list of this node's children.
-
bool
draggable
-
read / write
, inherited
-
bool
translate
-
read / write
, inherited
-
read-only
, inherited
Stream of contextmenu events handled by this [Element].
-
bool
spellcheck
-
read / write
, inherited
-
ElementStream<Event>
onTimeUpdate
-
read-only
, inherited
-
List<Node>
labels
-
read-only
, inherited
-
ElementStream<TouchEvent>
onTouchMove
-
read-only
, inherited
Stream of touchmove events handled by this [Element].
-
CssClassSet
classes
-
read / write
, inherited
The set of CSS classes applied to this element.
-
ElementStream<Event>
onEmptied
-
read-only
, inherited
-
ElementStream<KeyboardEvent>
onKeyUp
-
read-only
, inherited
Stream of keyup events handled by this [Element].
-
String
namespaceUri
-
read-only
, inherited
A URI that identifies the XML namespace of this element.
-
bool
willValidate
-
read-only
, inherited
-
ElementStream<Event>
onCopy
-
read-only
, inherited
Stream of copy events handled by this [Element].
-
bool
required
-
read / write
, inherited
-
ElementStream<TouchEvent>
onTouchCancel
-
read-only
, inherited
Stream of touchcancel events handled by this [Element].
-
ElementStream<Event>
onError
-
read-only
, inherited
Stream of error events handled by this [Element].
-
ElementStream<MouseEvent>
onMouseEnter
-
read-only
, inherited
Stream of mouseenter events handled by this [Element].
-
String
className
-
read / write
, inherited
-
ElementStream<MouseEvent>
onMouseUp
-
read-only
, inherited
Stream of mouseup events handled by this [Element].
-
String
nodeValue
-
read-only
, inherited
The value of this node.
-
String
baseUri
-
read-only
, inherited
-
ElementStream<MouseEvent>
onDragLeave
-
read-only
, inherited
A stream of dragleave events fired when an object being dragged over this
element leaves this element's target area.
-
ElementStream<MouseEvent>
onDragEnter
-
read-only
, inherited
A stream of dragenter events fired when a dragged object is first dragged
over this element.
-
CssRect
paddingEdge
-
read-only
, inherited
Access the dimensions and position of this element's content + padding box.
-
ElementStream<MouseEvent>
onDragOver
-
read-only
, inherited
A stream of dragover events fired when a dragged object is currently
being dragged over this element.
-
String
contentEditable
-
read / write
, inherited
-
ElementStream<MouseEvent>
onDrag
-
read-only
, inherited
A stream of drag events fired when this element currently being dragged.
-
ElementStream<KeyboardEvent>
onKeyDown
-
read-only
, inherited
Stream of keydown events handled by this [Element].
-
Document
ownerDocument
-
read-only
, inherited
The document this node belongs to.
-
ElementStream<Event>
onLoadedData
-
read-only
, inherited
-
String
selectionDirection
-
read / write
, inherited
-
ElementStream<Event>
onBlur
-
read-only
, inherited
Stream of blur events handled by this [Element].
-
ElementStream<MouseEvent>
onDragStart
-
read-only
, inherited
A stream of dragstart events fired when this element starts being
dragged.
-
Element
offsetParent
-
read-only
, inherited
-
ElementStream<TouchEvent>
onTouchEnd
-
read-only
, inherited
Stream of touchend events handled by this [Element].
-
int
scrollLeft
-
read / write
, inherited
-
ElementStream<Event>
onBeforeCopy
-
read-only
, inherited
Stream of beforecopy events handled by this [Element].
-
ElementStream<TouchEvent>
onTouchLeave
-
read-only
, inherited
Stream of touchleave events handled by this [Element].
-
ElementStream<Event>
onInvalid
-
read-only
, inherited
Stream of invalid events handled by this [Element].
-
int
tabIndex
-
read / write
, inherited
-
Rectangle
client
-
read-only
, inherited
Gets the position of this element relative to the client area of the page.
-
ElementStream<Event>
onSeeking
-
read-only
, inherited
-
ElementStream<Event>
onEnded
-
read-only
, inherited
-
ElementStream<Event>
onPaste
-
read-only
, inherited
Stream of paste events handled by this [Element].
-
int
scrollWidth
-
read-only
, inherited
-
int
offsetTop
-
read-only
, inherited
-
ElementStream<MouseEvent>
onMouseLeave
-
read-only
, inherited
Stream of mouseleave events handled by this [Element].
-
int
clientTop
-
read-only
, inherited
-
String
text
-
read / write
, inherited
All text within this node and its decendents.
-
Node
previousNode
-
read-only
, inherited
The previous sibling node.
-
ElementStream<Event>
onPlay
-
read-only
, inherited
-
ElementStream<Event>
onWaiting
-
read-only
, inherited
-
CssRect
marginEdge
-
read-only
, inherited
Access the dimensions and position of this element's content + padding +
border + margin box.
-
Node
firstChild
-
read-only
, inherited
The first child of this node.
-
bool
disabled
-
read / write
, inherited
-
int
clientHeight
-
read-only
, inherited
-
ElementStream<MouseEvent>
onMouseDown
-
read-only
, inherited
Stream of mousedown events handled by this [Element].
-
ElementStream<Event>
onDurationChange
-
read-only
, inherited
-
int
nodeType
-
read-only
, inherited
The type of node.
-
ElementStream<MouseEvent>
onDragEnd
-
read-only
, inherited
A stream of dragend events fired when this element completes a drag
operation.
-
ElementStream<Event>
onFullscreenChange
-
read-only
, inherited
Stream of fullscreenchange events handled by this [Element].
-
ElementStream<Event>
onScroll
-
read-only
, inherited
Stream of scroll events handled by this [Element].
-
Rectangle
offset
-
read-only
, inherited
Gets the offset of this element relative to its offsetParent.
-
int
offsetWidth
-
read-only
, inherited
-
ElementStream<TransitionEvent>
onTransitionEnd
-
read-only
, inherited
Stream of transitionend events handled by this [Element].
-
ElementStream<Event>
onCanPlayThrough
-
read-only
, inherited
Methods
-
scrollIntoView([ScrollAlignment alignment])
→
void
-
inherited
Scrolls this element into view.
-
setAttributeNS(String namespaceURI, String qualifiedName, String value)
→
void
-
inherited
-
remove()
→
void
-
inherited
Removes this node from the DOM.
-
contains(Node other)
→
bool
-
inherited
Returns true if this node contains the specified node.
-
requestPointerLock()
→
void
-
inherited
-
attached()
→
void
-
inherited
Called by the DOM when this element has been inserted into the live
document.
-
getAttributeNS(String namespaceURI, String localName)
→
String
-
inherited
-
queryAll(String relativeSelectors)
→
ElementList<Element>
-
inherited
Alias for querySelectorAll. Note this function is deprecated because its
semantics will be changing in the future.
-
getBoundingClientRect()
→
Rectangle
-
inherited
Returns the smallest bounding rectangle that encompasses this element's
padding, scrollbar, and border.
-
setCustomValidity(String error)
→
void
-
inherited
-
insertAllBefore(Iterable<Node> newNodes, Node refChild)
→
Node
-
inherited
Inserts all of the nodes into this node directly before refChild.
-
insertBefore(Node newChild, Node refChild)
→
Node
-
inherited
Inserts all of the nodes into this node directly before refChild.
-
blur()
→
void
-
inherited
-
leftView()
→
void
-
inherited
Deprecated*: override detached instead.
-
matches(String selectors)
→
bool
-
inherited
-
createFragment(String html, {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.
-
requestFullscreen()
→
void
-
inherited
-
clone(bool deep)
→
Node
-
inherited
Returns a copy of this node.
-
attributeChanged(String name, String oldValue, String newValue)
→
void
-
inherited
Called by the DOM whenever an attribute on this has been changed.
-
append(Node newChild)
→
Node
-
inherited
Adds a node to the end of the child nodes list of this node.
-
getElementsByClassName(String classNames)
→
List<Node>
-
inherited
Returns a list of nodes with the given class name inside this element.
-
querySelectorAll(String selectors)
→
ElementList<Element>
-
inherited
Finds all descendent elements of this element that match the specified
group of selectors.
-
replaceWith(Node otherNode)
→
Node
-
inherited
Replaces this node with another node.
-
offsetTo(Element parent)
→
Point
-
inherited
Provides the offset of this element's borderEdge relative to the
specified parent.
-
getAttribute(String name)
→
String
-
inherited
-
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.
-
dispatchEvent(Event event)
→
bool
-
inherited
-
createShadowRoot()
→
ShadowRoot
-
inherited
-
appendText(String text)
→
void
-
inherited
Adds the specified text after the last child of this element.
-
click()
→
void
-
inherited
-
checkValidity()
→
bool
-
inherited
-
enteredView()
→
void
-
inherited
Deprecated*: override attached instead.
-
addEventListener(String type, dynamic listener(Event event), [bool useCapture])
→
void
-
inherited
-
animate(Object effect, [Object timing])
→
AnimationPlayer
-
inherited
-
setAttribute(String name, String value)
→
void
-
inherited
-
getAnimationPlayers()
→
List<AnimationPlayer>
-
inherited
-
insertAdjacentText(String where, String text)
→
void
-
inherited
-
select()
→
void
-
inherited
-
query(String relativeSelectors)
→
Element
-
inherited
Alias for querySelector. Note this function is deprecated because its
semantics will be changing in the future.
-
insertAdjacentHtml(String where, String html, {NodeValidator validator, NodeTreeSanitizer treeSanitizer})
→
void
-
inherited
Parses text as an HTML fragment and inserts it into the DOM at the
specified location.
-
insertAdjacentElement(String where, Element element)
→
Element
-
inherited
-
hasChildNodes()
→
bool
-
inherited
Returns true if this node has any children.
-
getDestinationInsertionPoints()
→
List<Node>
-
inherited
Returns a list of shadow DOM insertion points to which this element is
distributed.
-
getComputedStyle([String pseudoElement])
→
CssStyleDeclaration
-
inherited
The set of all CSS values applied to this element, including inherited
and default values.
-
querySelector(String selectors)
→
Element
-
inherited
Finds the first descendant element of this element that matches the
specified group of selectors.
-
setSelectionRange(int start, int end, [String direction])
→
void
-
inherited
-
getNamespacedAttributes(String namespace)
→
Map<String,String>
-
inherited
Gets a map for manipulating the attributes of a particular namespace.
-
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.
-
removeEventListener(String type, dynamic listener(Event event), [bool useCapture])
→
void
-
inherited
-
detached()
→
void
-
inherited
Called by the DOM when this element has been removed from the live
document.
-
focus()
→
void
-
inherited
-
matchesWithAncestors(String selectors)
→
bool
-
inherited
Checks if this element or any of its parents match the CSS selectors.
-
getClientRects()
→
List<Rectangle>
-
inherited
Returns a list of bounding rectangles for each box associated with this
element.