Consumption information banner
Audience: CMS editors and developers.
Type: CarConsumptionInfoBanner.
This banner opens a dialog that explains CO₂ emissions and consumption.
This banner includes the common banner props.
Properties
id●required
string
CMS ID.
Exactly one consumptionInfo action is required. Explicit null text uses the translated label.
car●required
CarConsumptionData
Vehicle consumption and emissions data shown in the dialog.
Example
declare const car: CarConsumptionData;
const banner: CarConsumptionInfoBanner = {
typename: BannerTypename.CarConsumptionInfo,
id: 'b_123',
title: null,
titleTag: 'h2',
titleAlign: 'left',
cssId: null,
cssClasses: null,
car,
buttons: {
items: [
{
id: 'consumption',
action: 'consumptionInfo',
text: null,
style: 'primary',
theme: null,
url: null,
contactForm: null,
},
],
align: 'left',
width: 'intrinsic',
overflow: 'wrap',
},
};Last updated on