Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.3 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 { HarnessPredicate } from '@angular/cdk/testing';
|
---|
9 | import { MatChipHarness } from './chip-harness';
|
---|
10 | import { ChipOptionHarnessFilters } from './chip-harness-filters';
|
---|
11 | export declare class MatChipOptionHarness extends MatChipHarness {
|
---|
12 | /** The selector for the host element of a selectable chip instance. */
|
---|
13 | static hostSelector: string;
|
---|
14 | /**
|
---|
15 | * Gets a `HarnessPredicate` that can be used to search for a `MatChipOptionHarness`
|
---|
16 | * that meets certain criteria.
|
---|
17 | * @param options Options for filtering which chip instances are considered a match.
|
---|
18 | * @return a `HarnessPredicate` configured with the given options.
|
---|
19 | */
|
---|
20 | static with(options?: ChipOptionHarnessFilters): HarnessPredicate<MatChipOptionHarness>;
|
---|
21 | /** Whether the chip is selected. */
|
---|
22 | isSelected(): Promise<boolean>;
|
---|
23 | /** Selects the given chip. Only applies if it's selectable. */
|
---|
24 | select(): Promise<void>;
|
---|
25 | /** Deselects the given chip. Only applies if it's selectable. */
|
---|
26 | deselect(): Promise<void>;
|
---|
27 | /** Toggles the selected state of the given chip. */
|
---|
28 | toggle(): Promise<void>;
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.