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

Method with

src/material/table/testing/table-harness.ts:46–51  ·  view source on GitHub ↗

* Gets a `HarnessPredicate` that can be used to search for a table with specific attributes. * @param options Options for narrowing the search * @return a `HarnessPredicate` configured with the given options.

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

Source from the content-addressed store, hash-verified

44 * @return a `HarnessPredicate` configured with the given options.
45 */
46 static with<T extends MatTableHarness>(
47 this: ComponentHarnessConstructor<T>,
48 options: TableHarnessFilters = {},
49 ): HarnessPredicate<T> {
50 return new HarnessPredicate(this, options);
51 }
52
53 /** Gets all the header rows in a table. */
54 async getHeaderRows(filter: RowHarnessFilters = {}): Promise<MatHeaderRowHarness[]> {

Callers 4

getHeaderRowsMethod · 0.45
getRowsMethod · 0.45
getFooterRowsMethod · 0.45
getNoDataRowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected