<BptBannerProducer
TemplateData="@_templateBytes"
Height="600px"
BannerListOrientation="BannerListOrientation.Left"
ShowOrderButton="true"
OrderButtonText="Place Order"
OrderConfirmationText="Please confirm that you want to place this banner order."
ShowSocialMediaFrame="true"
EnableAdCopyFields="true"
OnOrder="HandleOrder"
OnExport="HandleExport"
/>
@code {
@using Bpt.Components.Tools
// Fields
private byte[]? _templateBytes; // loaded from a .bptt file
// Event handlers
private Task HandleOrder(BannerProducerOrderResult result)
{
// result.Banners — each item has BannerName, Width, Height, BptiBytes, PngBytes, AdCopy
return Task.CompletedTask;
}
private Task HandleExport(BannerProducerExportResult result)
{
// Component already downloaded the file(s) in the browser;
// this is the observation hook for analytics or upload to your backend.
return Task.CompletedTask;
}
}