atomic-result-template
atomic-result-template
This is for:
DeveloperA result template determines the format of the query results, depending on the conditions that are defined for each template.
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
|
A function that must return true on results for the result template to apply. Set programmatically before initialization, not via attribute. For example, the following targets a template and sets a condition to make it apply only to results whose |
|
|
|
|
|
The field and values that define which result items the condition must be applied to. For example, a template with the following attribute only applies to result items whose |
|
|
|
|
The field and values that define which result items the condition must not be applied to. For example, a template with the following attribute only applies to result items whose |
|
|
Slots
Slots let you write custom HTML at a specific place inside a web component.
Slot | Description |
---|---|
|
Mandatory. A |
|
A Note: Any |
Methods
getTemplate
Gets the appropriate result template based on conditions applied.
Signature: getTemplate() => Promise<ResultTemplate<DocumentFragment> | null>
Returns: Promise<ResultTemplate<DocumentFragment> | null>