MCPcopy
hub / github.com/angular/components / with

Method with

src/aria/grid/testing/grid-harness.ts:130–136  ·  view source on GitHub ↗

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

(options: GridHarnessFilters = {})

Source from the content-addressed store, hash-verified

128 * @return a `HarnessPredicate` configured with the given options.
129 */
130 static with(options: GridHarnessFilters = {}): HarnessPredicate<GridHarness> {
131 return new HarnessPredicate(GridHarness, options).addOption(
132 'disabled',
133 options.disabled,
134 async (harness, disabled) => (await harness.isDisabled()) === disabled,
135 );
136 }
137
138 /** Whether the grid is disabled. */
139 async isDisabled(): Promise<boolean> {

Callers 4

getCellsMethod · 0.45
getRowsMethod · 0.45
getCellsMethod · 0.45

Calls 2

addOptionMethod · 0.80
isDisabledMethod · 0.45

Tested by

no test coverage detected