ContentChildFunction
Type of the contentChild
function.
interface ContentChildFunction {
required: {...}
<LocatorT>(locator: string | ProviderToken<LocatorT>, opts?: { descendants?: boolean; read?: undefined; }): Signal<LocatorT | undefined>
<LocatorT, ReadT>(locator: string | ProviderToken<LocatorT>, opts: { descendants?: boolean; read: ProviderToken<ReadT>; }): Signal<ReadT | undefined>
}
Description
The contentChild function creates a singular content query. It is a special function that also
provides access to required query results via the .required
property.
Properties
Property | Description |
---|---|
required: {
<LocatorT>(locator: ProviderToken<LocatorT> | string, opts?: {
descendants?: boolean;
read?: undefined;
}): Signal<LocatorT>;
<LocatorT, ReadT>(locator: ProviderToken<LocatorT> | string, opts: {
descendants?: boolean;
read: ProviderToken<ReadT>;
}): Signal<ReadT>;
}
|
Initializes a content child query that is always expected to match. |
Methods
call signature | ||||||
---|---|---|---|---|---|---|
Initializes a content child query. |
||||||
Parameters
Returns
|
||||||
Parameters
Returns
|
||||||
Consider using |