Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | import { ModifierKeys } from '@angular/cdk/testing';
|
---|
9 | /**
|
---|
10 | * Checks whether the given Element is a text input element.
|
---|
11 | * @docs-private
|
---|
12 | */
|
---|
13 | export declare function isTextInput(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
|
---|
14 | /**
|
---|
15 | * Focuses an input, sets its value and dispatches
|
---|
16 | * the `input` event, simulating the user typing.
|
---|
17 | * @param element Element onto which to set the value.
|
---|
18 | * @param keys The keys to send to the element.
|
---|
19 | * @docs-private
|
---|
20 | */
|
---|
21 | export declare function typeInElement(element: HTMLElement, ...keys: (string | {
|
---|
22 | keyCode?: number;
|
---|
23 | key?: string;
|
---|
24 | })[]): void;
|
---|
25 | /**
|
---|
26 | * Focuses an input, sets its value and dispatches
|
---|
27 | * the `input` event, simulating the user typing.
|
---|
28 | * @param element Element onto which to set the value.
|
---|
29 | * @param modifiers Modifier keys that are held while typing.
|
---|
30 | * @param keys The keys to send to the element.
|
---|
31 | * @docs-private
|
---|
32 | */
|
---|
33 | export declare function typeInElement(element: HTMLElement, modifiers: ModifierKeys, ...keys: (string | {
|
---|
34 | keyCode?: number;
|
---|
35 | key?: string;
|
---|
36 | })[]): void;
|
---|
37 | /**
|
---|
38 | * Clears the text in an input or textarea element.
|
---|
39 | * @docs-private
|
---|
40 | */
|
---|
41 | export declare function clearElement(element: HTMLInputElement | HTMLTextAreaElement): void;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.