You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.3 KiB
29 lines
1.3 KiB
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
import { MatChipHarness } from './chip-harness';
|
|
import { ChipOptionHarnessFilters } from './chip-harness-filters';
|
|
export declare class MatChipOptionHarness extends MatChipHarness {
|
|
/** The selector for the host element of a selectable chip instance. */
|
|
static hostSelector: string;
|
|
/**
|
|
* Gets a `HarnessPredicate` that can be used to search for a `MatChipOptionHarness`
|
|
* that meets certain criteria.
|
|
* @param options Options for filtering which chip instances are considered a match.
|
|
* @return a `HarnessPredicate` configured with the given options.
|
|
*/
|
|
static with(options?: ChipOptionHarnessFilters): HarnessPredicate<MatChipOptionHarness>;
|
|
/** Whether the chip is selected. */
|
|
isSelected(): Promise<boolean>;
|
|
/** Selects the given chip. Only applies if it's selectable. */
|
|
select(): Promise<void>;
|
|
/** Deselects the given chip. Only applies if it's selectable. */
|
|
deselect(): Promise<void>;
|
|
/** Toggles the selected state of the given chip. */
|
|
toggle(): Promise<void>;
|
|
}
|