API reference for Angular Material grid-list
import {MatGridListModule} from '@angular/material/grid-list';
Directives
MatGridList
Selector: mat-grid-list
Exported as: matGridListProperties
Name | Description |
---|---|
@Input()
|
Amount of columns in the grid list. |
@Input()
|
Size of the grid list's gutter in pixels. |
@Input()
|
Set internal representation of row height from the user-provided value. |
MatGridTile
Selector: mat-grid-tile
Exported as: matGridTileProperties
Name | Description |
---|---|
@Input()
|
Amount of columns that the grid tile takes up. |
@Input()
|
Amount of rows that the grid tile takes up. |
MatGridTileText
Selector: mat-grid-tile-header mat-grid-tile-footer
Constants
ɵTileCoordinator
const ɵTileCoordinator: typeof TileCoordinator;
API reference for Angular Material grid-list-testing
import {MatGridTileHarness} from '@angular/material/grid-list/testing';
Classes
MatGridTileHarness
extends
ContentContainerComponentHarness
Harness for interacting with a standard MatGridTitle
in tests.
Properties
Name | Description |
---|---|
|
The selector for the host element of a |
Methods
async
getAllChildLoaders
|
|
---|---|
Parameters | |
selector S
|
|
Returns | |
Promise<HarnessLoader[]>
|
|
async
getAllHarnesses
|
|
---|---|
Parameters | |
query HarnessQuery<T>
|
|
Returns | |
Promise<T[]>
|
|
async
getChildLoader
|
|
---|---|
Parameters | |
selector S
|
|
Returns | |
Promise<HarnessLoader>
|
|
async
getColspan
|
|
---|---|
Gets the amount of columns that the grid-tile takes up. |
|
Returns | |
Promise<number>
|
|
async
getFooterText
|
|
---|---|
Gets the text of the footer if present. |
|
Returns | |
Promise<string | null>
|
|
async
getHarness
|
|
---|---|
Parameters | |
query HarnessQuery<T>
|
|
Returns | |
Promise<T>
|
|
async
getHarnessOrNull
|
|
---|---|
Parameters | |
query HarnessQuery<T>
|
|
Returns | |
Promise<T | null>
|
|
async
getHeaderText
|
|
---|---|
Gets the text of the header if present. |
|
Returns | |
Promise<string | null>
|
|
async
getRowspan
|
|
---|---|
Gets the amount of rows that the grid-tile takes up. |
|
Returns | |
Promise<number>
|
|
async
hasAvatar
|
|
---|---|
Whether the grid-tile has an avatar. |
|
Returns | |
Promise<boolean>
|
|
async
hasFooter
|
|
---|---|
Whether the grid-tile has a footer. |
|
Returns | |
Promise<boolean>
|
|
async
hasHarness
|
|
---|---|
Parameters | |
query HarnessQuery<T>
|
|
Returns | |
Promise<boolean>
|
|
async
hasHeader
|
|
---|---|
Whether the grid-tile has a header. |
|
Returns | |
Promise<boolean>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
static
with
|
|
---|---|
Gets a |
|
Parameters | |
options GridTileHarnessFilters = {}
|
Options for filtering which dialog instances are considered a match. |
Returns | |
HarnessPredicate<MatGridTileHarness>
|
a |
MatGridListHarness
extends
ComponentHarness
Harness for interacting with a standard MatGridList
in tests.
Properties
Name | Description |
---|---|
|
The selector for the host element of a |
Methods
async
getColumns
|
|
---|---|
Gets the amount of columns of the grid-list. |
|
Returns | |
Promise<number>
|
|
async
getTileAtPosition
|
|
---|---|
Gets a tile of the grid-list that is located at the given location. |
|
Parameters | |
row
|
Zero-based row index. |
column
|
Zero-based column index. |
__0 { row: number; column: number; }
|
|
Returns | |
Promise<MatGridTileHarness>
|
|
async
getTiles
|
|
---|---|
Gets all tiles of the grid-list. |
|
Parameters | |
filters GridTileHarnessFilters = {}
|
|
Returns | |
Promise<MatGridTileHarness[]>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
static
with
|
|
---|---|
Gets a |
|
Parameters | |
options GridListHarnessFilters = {}
|
Options for filtering which dialog instances are considered a match. |
Returns | |
HarnessPredicate<MatGridListHarness>
|
a |
Interfaces
GridListHarnessFilters
A set of criteria that can be used to filter a list of MatGridListHarness
instances.
GridTileHarnessFilters
A set of criteria that can be used to filter a list of MatTileHarness
instances.
Properties
Name | Description |
---|---|
|
Text the grid-tile footer should match. |
|
Text the grid-tile header should match. |