类似于 TextInputElement,但在搜索样式不同的平台上将获得搜索样式。
使用 supported 检查当前平台是否支持。
- 实现类型
- 实现者
- 注解
-
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.FIREFOX)
- @SupportedBrowser(SupportedBrowser.IE, '10')
- @SupportedBrowser(SupportedBrowser.SAFARI)
构造函数
- SearchInputElement()
-
factory
属性
- accessibleNode → AccessibleNode?
-
no setterinherited
- assignedSlot → SlotElement?
-
no setterinherited
-
attributes ↔ Map<
String, String> - 此元素上的所有属性。getter/setter pairinherited
- autocomplete ↔ String
-
getter/setter pairinherited
- autofocus ↔ bool
-
getter/setter pairinherited
- baseUri → String?
-
no setterinherited
- borderEdge → CssRect
- 访问此元素的内容 + 内边距 + 边框的尺寸和位置。no setterinherited
-
childNodes → List<
Node> - 此节点子节点的列表。no setterinherited
-
children ↔ List<
Element> - 此元素的直接子元素列表。getter/setter pairinherited
- classes ↔ CssClassSet
- 应用于此元素的颜色集。getter/setter pairinherited
- className ↔ String
-
getter/setter pairinherited
-
client → Rectangle<
num> - 获取这个元素相对于页面客户端区域的位子。no setterinherited
- clientHeight → int
-
no setterinherited
- clientLeft → int?
-
no setterinherited
- clientTop → int?
-
no setterinherited
- clientWidth → int
-
no setterinherited
- computedName → String?
-
no setterinherited
- computedRole → String?
-
no setterinherited
- contentEdge → CssRect
- 访问此元素的 内容位置。no setterinherited
- contentEditable ↔ String
-
getter/setter pairinherited
-
dataset ↔ Map<
String, String> - 允许访问此元素上设置的 所有自定义数据属性 (data-*)。getter/setter pairinherited
- dir ↔ String?
-
getter/setter pairinherited
- dirName ↔ String?
-
getter/setter 对对
- disabled ↔ bool?
-
getter/setter pairinherited
-
documentOffset → Point<
num> - 提供该元素相对于文档顶部的坐标。no setterinherited
- draggable ↔ bool
- 指示该元素是否可以拖放。getter/setter pairinherited
- firstChild → Node?
- 此节点的第一个子节点。no setterinherited
- hashCode → int
- 该对象的标准哈希码。no setterinherited
- 指示元素是否与页面当前状态无关。getter/setter pairinherited
- id ↔ String
-
getter/setter pairinherited
- incremental ↔ bool?
-
getter/setter pairinherited
- indeterminate ↔ bool?
-
getter/setter pairinherited
- inert ↔ bool?
-
getter/setter pairinherited
- innerHtml ↔ String?
- 解析 HTML 片段并将其设置为该元素的内容。getter/setter pairinherited
- innerText ↔ String
-
getter/setter pairinherited
- inputMode ↔ String?
-
getter/setter pairinherited
- isConnected → bool?
-
no setterinherited
- isContentEditable → bool?
-
no setterinherited
-
labels → List<
Node> ? -
no setterinherited
- lang ↔ String?
-
getter/setter pairinherited
- lastChild → Node?
- 此节点的最后一个子节点。no setterinherited
- list → Element?
-
无设置器
- localName → String
-
no setterinherited
- marginEdge → CssRect
- 获取此元素的内容 + 内边距 + 边框 + 外边距框的尺寸和位置。no setterinherited
- maxLength ↔ int?
-
getter/setter pairinherited
- name ↔ String?
-
getter/setter pairinherited
- namespaceUri → String?
- 一个URI,用于标识此元素的XML命名空间。no setterinherited
- nextElementSibling → Element?
-
no setterinherited
- nextNode → Node?
- 下一个兄弟节点。no setterinherited
- nodeName → String?
- 此节点的名称。no setterinherited
-
nodes ↔ List<
Node> - 此节点子节点的可修改列表。getter/setter pairinherited
- nodeType → int
- 节点的类型。no setterinherited
- nodeValue → String?
- 此节点的值。no setterinherited
-
offset → Rectangle<
num> - 获取此元素相对于其offsetParent的偏移量。no setterinherited
- offsetHeight → int
-
no setterinherited
- offsetLeft → int
-
no setterinherited
- offsetParent → Element?
-
no setterinherited
- offsetTop → int
-
no setterinherited
- offsetWidth → int
-
no setterinherited
- on → ElementEvents
- 这是一个用于事件的便捷访问器,应在没有显式访问器的情况下使用。no setterinherited
-
onAbort → ElementStream<
Event> - 此Element处理的
abort
事件的流。no setterinherited -
onBeforeCopy → ElementStream<
Event> - 此Element处理的
beforecopy
事件的流。no setterinherited -
onBeforeCut → ElementStream<
Event> - 此Element处理的
beforecut
事件的流。no setterinherited -
onBeforePaste → ElementStream<
Event> - 此Element处理的
beforepaste
事件的流。no setterinherited -
onBlur → ElementStream<
Event> - 此Element处理的
blur
事件的流。no setterinherited -
onCanPlay → ElementStream<
Event> -
no setterinherited
-
onCanPlayThrough → ElementStream<
Event> -
no setterinherited
-
onChange → ElementStream<
Event> - 此Element处理的
change
事件流。no setterinherited -
onClick → ElementStream<
MouseEvent> - 此Element处理的
click
事件流。no setterinherited -
onContextMenu → ElementStream<
MouseEvent> - 此Element处理的
contextmenu
事件流。no setterinherited -
onCopy → ElementStream<
ClipboardEvent> - 此Element处理的
copy
事件流。no setterinherited -
onCut → ElementStream<
ClipboardEvent> - 此Element处理的
cut
事件流。no setterinherited -
onDoubleClick → ElementStream<
Event> - 此Element处理的
doubleclick
事件流。no setterinherited -
onDrag → ElementStream<
MouseEvent> - 当此元素正在被拖拽时,触发
drag
事件。no setterinherited -
onDragEnd → ElementStream<
MouseEvent> - 当此元素完成拖拽操作时,触发
dragend
事件。no setterinherited -
onDragEnter → ElementStream<
MouseEvent> - 当第一次将拖拽对象拖至此元素上时,触发
dragenter
事件。no setterinherited -
onDragLeave → ElementStream<
MouseEvent> - 当被拖拽的对象从此元素的靶区域移出时,触发
dragleave
事件。no setterinherited -
onDragOver → ElementStream<
MouseEvent> - 当拖拽对象正在此元素上被拖动时,触发
dragover
事件。no setterinherited -
onDragStart → ElementStream<
MouseEvent> - 当此元素开始被拖拽时,触发
dragstart
事件。no setterinherited -
onDrop → ElementStream<
MouseEvent> - 当拖拽对象被放下在此元素上时,触发
drop
事件。no setterinherited -
onDurationChange → ElementStream<
Event> -
no setterinherited
-
onEmptied → ElementStream<
Event> -
no setterinherited
-
onEnded → ElementStream<
Event> -
no setterinherited
-
onError → ElementStream<
Event> - 由该Element处理的
error
事件流。no setterinherited -
onFocus → ElementStream<
Event> - 该 Element 处理的
focus
事件流。no setterinherited -
onFullscreenChange → ElementStream<
Event> - 由该 Element 处理的
fullscreenchange
事件流。no setterinherited -
onFullscreenError → ElementStream<
Event> - 由该 Element 处理的
fullscreenerror
事件流。no setterinherited -
onInput → ElementStream<
Event> - 由该 Element 处理的
input
事件流。no setterinherited -
onInvalid → ElementStream<
Event> - 由该 Element 处理的
invalid
事件流。no setterinherited -
onKeyDown → ElementStream<
KeyboardEvent> - 由该 Element 处理的
keydown
事件流。no setterinherited -
onKeyPress → ElementStream<
KeyboardEvent> - 由该 Element 处理的
keypress
事件流。no setterinherited -
onKeyUp → ElementStream<
KeyboardEvent> - 由该 Element 处理的
keyup
事件流。no setterinherited -
onLoad → ElementStream<
Event> - 由该 Element 处理的
load
事件流。no setterinherited -
onLoadedData → ElementStream<
Event> -
no setterinherited
-
onLoadedMetadata → ElementStream<
Event> -
no setterinherited
-
onMouseDown → ElementStream<
MouseEvent> - 由这个 元素 处理的
mousedown
事件流。no setterinherited -
onMouseEnter → ElementStream<
MouseEvent> - 由这个 元素 处理的
mouseenter
事件流。no setterinherited -
onMouseLeave → ElementStream<
MouseEvent> - 由这个 元素 处理的
mouseleave
事件流。no setterinherited -
onMouseMove → ElementStream<
MouseEvent> - 由这个 元素 处理的
mousemove
事件流。no setterinherited -
onMouseOut → ElementStream<
MouseEvent> - 由这个 元素 处理的
mouseout
事件流。no setterinherited -
onMouseOver → ElementStream<
MouseEvent> - 由这个 元素 处理的
mouseover
事件流。no setterinherited -
onMouseUp → ElementStream<
MouseEvent> - 由这个 元素 处理的
mouseup
事件流。no setterinherited -
onMouseWheel → ElementStream<
WheelEvent> - 由这个 元素 处理的
mousewheel
事件流。no setterinherited -
onPaste → ElementStream<
ClipboardEvent> - 由这个 元素 处理的
paste
事件流。no setterinherited -
onPause → ElementStream<
Event> -
no setterinherited
-
onPlay → ElementStream<
Event> -
no setterinherited
-
onPlaying → ElementStream<
Event> -
no setterinherited
-
onRateChange → ElementStream<
Event> -
no setterinherited
-
onReset → ElementStream<
Event> - 由这个 元素 处理的
reset
事件流。no setterinherited -
onResize → ElementStream<
Event> -
no setterinherited
-
onScroll → ElementStream<
Event> - 由这个 元素 处理的
scroll
事件流。no setterinherited -
onSearch → ElementStream<
Event> - 由该 Element 处理的
search
事件流。no setterinherited -
onSeeked → ElementStream<
Event> -
no setterinherited
-
onSeeking → ElementStream<
Event> -
no setterinherited
-
onSelect → ElementStream<
Event> - 由该 Element 处理的
select
事件流。no setterinherited -
onSelectStart → ElementStream<
Event> - 由该 Element 处理的
selectstart
事件流。no setterinherited -
onStalled → ElementStream<
Event> -
no setterinherited
-
onSubmit → ElementStream<
Event> - 由该 Element 处理的
submit
事件流。no setterinherited -
onSuspend → ElementStream<
Event> -
no setterinherited
-
onTimeUpdate → ElementStream<
Event> -
no setterinherited
-
onTouchCancel → ElementStream<
TouchEvent> - 由该 Element 处理的
touchcancel
事件流。no setterinherited -
onTouchEnd → ElementStream<
TouchEvent> - 由该 Element 处理的
touchend
事件流。no setterinherited -
onTouchEnter → ElementStream<
TouchEvent> - 由该 Element 处理的
touchenter
事件流。no setterinherited -
onTouchLeave → ElementStream<
TouchEvent> - 由该 Element 处理的
touchleave
事件流。no setterinherited -
onTouchMove → ElementStream<
TouchEvent> - 由该 Element 处理的
touchmove
事件流。no setterinherited -
onTouchStart → ElementStream<
TouchEvent> - 由该 Element 处理的
touchstart
事件流。no setterinherited -
onTransitionEnd → ElementStream<
TransitionEvent> - 由该元素处理的
transitionend
事件流。no setterinherited -
onVolumeChange → ElementStream<
Event> -
no setterinherited
-
onWaiting → ElementStream<
Event> -
no setterinherited
-
onWheel → ElementStream<
WheelEvent> -
no setterinherited
- outerHtml → String?
-
no setterinherited
- ownerDocument → Document?
- 该节点所属的文档。no setterinherited
- paddingEdge → CssRect
- 访问此元素内容 + 内边距框的尺寸和位置。no setterinherited
- parent → Element?
- 此节点的父元素。no setterinherited
- parentNode → Node?
- 此节点的父节点。no setterinherited
- pattern ↔ String
-
getter/setter pairinherited
- placeholder ↔ String
-
getter/setter pairinherited
- previousElementSibling → Element?
-
no setterinherited
- previousNode → Node?
- 上一个兄弟节点。no setterinherited
- readOnly ↔ bool?
-
getter/setter pairinherited
- required ↔ bool
-
getter/setter pairinherited
- runtimeType → Type
- 对象运行时类型的表示。no setterinherited
- scrollHeight → int
-
no setterinherited
- scrollLeft ↔ int
-
getter/setter pairinherited
- scrollTop ↔ int
-
getter/setter pairinherited
- scrollWidth → int
-
no setterinherited
- selectionDirection ↔ String?
-
getter/setter pairinherited
- selectionEnd ↔ int?
-
getter/setter pairinherited
- selectionStart ↔ int?
-
getter/setter pairinherited
- shadowRoot → ShadowRoot?
- 此阴影宿主的阴影根。no setterinherited
- size ↔ int?
-
getter/setter pairinherited
- slot ↔ String?
-
getter/setter pairinherited
- spellcheck ↔ bool?
-
getter/setter pairinherited
- style → CssStyleDeclaration
-
no setterinherited
- styleMap → StylePropertyMap?
-
no setterinherited
- tabIndex ↔ int?
-
getter/setter pairinherited
- tagName → String
-
no setterinherited
- text ↔ String?
- 此节点及其子节点内的所有文本。getter/setter pairinherited
- title ↔ String?
-
getter/setter pairinherited
- translate ↔ bool?
- 指定当页面本地化时,该元素的文字内容是否改变。getter/setter pairinherited
- validationMessage → String
-
no setterinherited
- validity → ValidityState
-
no setterinherited
- value ↔ String?
-
getter/setter pairinherited
- willValidate → bool
-
no setterinherited
方法
-
addEventListener(
String type, EventListener? listener, [bool? useCapture]) → void -
继承
-
after(
Object nodes) → void -
继承
-
animate(
Iterable< Map< frames, [dynamic timing]) → AnimationString, dynamic> > - 创建一个新的 AnimationEffect 对象,其目标元素是调用此方法的对象,并调用节点的文档时间线对象的 AnimationTimeline 对象的 play() 方法,将新创建的 AnimationEffect 作为方法的参数传递。返回效果对应的 Animation。继承
-
append(
Node node) → Node - 将节点添加到此节点子节点列表的末尾。继承
-
appendHtml(
String text, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void - 将指定文本解析为 HTML 并将其附加到此元素的最后一个子元素之后。继承
-
appendText(
String text) → void - 在当前元素的最后一个子元素后添加指定的文本。继承
-
attached(
) → void - 由DOM在将此元素插入活文档时调用。继承
-
attachShadow(
Map shadowRootInitDict) → ShadowRoot -
继承
-
attributeChanged(
String name, String oldValue, String newValue) → void - 当此元素上的属性发生变化时由DOM调用。继承
-
before(
Object nodes) → void -
继承
-
blur(
) → void -
继承
-
checkValidity(
) → bool -
继承
-
click(
) → void -
继承
-
clone(
bool? deep) → Node - 返回此节点的副本。继承
-
closest(
String selectors) → Element? -
继承
-
contains(
Node? other) → bool - 如果此节点包含指定的节点,则返回true。继承
-
createFragment(
String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → DocumentFragment - 从HTML片段创建一个DocumentFragment,并确保它遵循由验证器或treeSanitizer指定的清理规则。继承
-
createShadowRoot(
) → ShadowRoot - 为此shadow host创建一个新的shadow root。继承
-
detached(
) → void - 由DOM在从活文档中移除此元素时调用。继承
-
dispatchEvent(
Event event) → bool -
继承
-
enteredView(
) → void - 弃用(*):请改用 attached。继承
-
focus(
) → void -
继承
-
getAnimations(
) → List< Animation> -
继承
-
getAttribute(
String name) → String? -
继承
-
getAttributeNames(
) → List< String> -
继承
-
getAttributeNS(
String? namespaceURI, String name) → String? -
继承
-
getBoundingClientRect(
) → Rectangle< num> - 返回包含此元素的填充、滚动条和边框的最小外接矩形。继承
-
getClientRects(
) → List< Rectangle< num> > -
继承
-
getComputedStyle(
[String? pseudoElement]) → CssStyleDeclaration - 包含应用于此元素的所有CSS值,包括继承的和默认的值。继承
-
getDestinationInsertionPoints(
) → List< Node> - 返回一个列表,该列表包含此元素分布到的阴影DOM插入点。继承
-
getElementsByClassName(
String classNames) → List< Node> - 返回包含在当前元素内具有指定类名的节点列表。继承
-
getNamespacedAttributes(
String namespace) → Map< String, String> - 获取用于操作特定命名空间属性的映射。继承
-
getRootNode(
[Map? options]) → Node -
继承
-
hasAttribute(
String name) → bool -
继承
-
hasAttributeNS(
String? namespaceURI, String name) → bool -
继承
-
hasChildNodes(
) → bool - 如果此节点有任何子节点,则返回 true。继承
-
hasPointerCapture(
int pointerId) → bool -
继承
-
insertAdjacentElement(
String where, Element element) → Element - 将
element
插入 DOM 的指定位置。继承 -
insertAdjacentHtml(
String where, String html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void - 将文本解析为 HTML 片段并插入到 DOM 的指定位置。继承
-
insertAdjacentText(
String where, String text) → void - 在指定位置将文本插入到 DOM。继承
-
insertAllBefore(
Iterable< Node> newNodes, Node child) → void - 将所有节点直接插入到子节点前。继承
-
insertBefore(
Node node, Node? child) → Node - 将指定节点插入到此节点直接在子节点之前。如果 child 是
null
,则在子节点的末尾插入给定节点。继承 -
leftView(
) → void - 已弃用:请使用替换 detached。继承
-
matches(
String selectors) → bool - 检查此元素是否匹配CSS选择器。继承
-
matchesWithAncestors(
String selectors) → bool - 检查此元素或其任何父元素是否匹配CSS选择器。继承
-
noSuchMethod(
Invocation invocation) → dynamic - 当访问不存在的方法或属性时被调用。继承
-
offsetTo(
Element parent) → Point< num> - 提供此元素相对于指定
parent
的 borderEdge 的偏移量。继承 -
querySelector(
String selectors) → Element? - 查找此元素的第一代后代元素,该元素匹配指定的选择器组。继承
-
querySelectorAll< T extends Element>(
String selectors) → ElementList< T> - 查找此元素的所有后代元素,这些后代元素都匹配指定的选择器组。继承
-
releasePointerCapture(
int pointerId) → void -
继承
-
remove(
) → void - 从DOM中删除此节点。继承
-
removeAttribute(
String name) → void -
继承
-
removeAttributeNS(
String? namespaceURI,
String name) → void -
继承
-
removeEventListener(
String type, EventListener? listener, [bool? useCapture]) → void -
继承
-
replaceWith(
Node otherNode) → Node - 用另一个节点替换此节点。继承
-
requestFullscreen(
[Map? options]) → Future< void> - 显示此元素的全屏模式。继承
-
requestPointerLock(
) → void -
继承
-
scroll(
[dynamic options_OR_x, num? y]) → void -
继承
-
scrollBy(
[dynamic options_OR_x, num? y]) → void -
继承
-
scrollIntoView(
[ScrollAlignment? alignment]) → void - 滚动此元素到视图中。继承
-
scrollIntoViewIfNeeded(
[bool? centerIfNeeded]) → void - 这是“scrollIntoView”的非标准版本,如果当前元素尚未在浏览器窗口的可见区域内,则将该元素滚动到浏览器窗口的可见区域。如果元素已在浏览器窗口的可见区域内,则不进行任何滚动。继承
-
scrollTo(
[dynamic options_OR_x, num? y]) → void -
继承
-
select(
) → void -
继承
-
setApplyScroll(
String nativeScrollBehavior) → Future< ScrollState> -
继承
-
setAttribute(
String name, Object value) → void -
继承
-
setAttributeNS(
String? namespaceURI, String name, Object value) → void -
继承
-
setCustomValidity(
String error) → void -
继承
-
setDistributeScroll(
String nativeScrollBehavior) → Future<
ScrollState> -
继承
-
setInnerHtml(
String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void - 解析并设置HTML片段作为该元素的文本内容。这确保生成的内容遵循验证器或treeSanitizer指定的净化规则。继承
-
setPointerCapture(
int pointerId) → void -
继承
-
setSelectionRange(
int start, int end, [String? direction]) → void -
继承
-
toString(
) → String - 该对象的字符串表示。继承
操作符
-
operator ==(
Object other) → bool - 相等操作符。继承