MCPcopy Create free account
hub / github.com/angular/components / with

Method with

src/material/list/testing/list-harness.ts:28–33  ·  view source on GitHub ↗

* Gets a `HarnessPredicate` that can be used to search for a list with specific attributes. * @param options Options for filtering which list instances are considered a match. * @return a `HarnessPredicate` configured with the given options.

(
    this: ComponentHarnessConstructor<T>,
    options: ListHarnessFilters = {},
  )

Source from the content-addressed store, hash-verified

26 * @return a `HarnessPredicate` configured with the given options.
27 */
28 static with<T extends MatListHarness>(
29 this: ComponentHarnessConstructor<T>,
30 options: ListHarnessFilters = {},
31 ): HarnessPredicate<T> {
32 return new HarnessPredicate(this, options);
33 }
34
35 override _itemHarness = MatListItemHarness;
36}

Callers 4

getItemsFunction · 0.45

Calls

no outgoing calls

Tested by 1