atomic-result-number

This is for:

Developer
In this article

See Display results to learn more about customizing your result templates.

The atomic-result-number component renders the value of a number result field.

Properties

Property Attribute Description Type Default

field (required)

field

The field that the component should use. The component will try to find this field in the Result.raw object unless it finds it in the Result object first. Make sure this field is present in the fieldsToInclude property of the atomic-search-interface component.

string

Slots

Slots let you write custom HTML at a specific place inside a web component.

Slot Description

default

The number can be formatted by adding a atomic-format-number, atomic-format-currency or atomic-format-unit component into this component.