RequestCoverProps
RequestCoverProps =
object
Properties
id?
optionalid:string
The id of the gadget.
title
title:
string
The title of the gadget that will be displayed in the header.
createdAt
createdAt:
string
The date to be displayed in the header.
globalState
globalState:
string
The global state the file is currently in.
headers
headers:
object
The titles for the main sections.
comment
comment:
string
requestInformations
requestInformations:
string
vendor
vendor:
string
verifications
verifications:
string
comments
comments:
object
The data for the comments section.
visible
visible:
boolean
entries
entries:
object
entries.comment
comment:
TextItem
entries.reasonReject
reasonReject:
TextItem
requestInformations
requestInformations:
Record<string,TextItem>
The data for the request information section.
processing
processing:
Record<string,TextItem>
The data for the processing information section.
vendor
vendor:
object
The data for the headers of the processing information section.
id
id:
TextItem
name
name:
TextItem
countryCode
countryCode:
TextItem
zipCode
zipCode:
TextItem
city
city:
TextItem
street
street:
TextItem
verifications
verifications:
MultiTableGadgetOptions
The options object for the MultiTable that displays the verification information.
steps
steps:
Step[]
The data for the progress gadget.
customStyles?
optionalcustomStyles:object
Custom styles for the primary color and progress gadget.
gadgetPrimaryColor?
optionalgadgetPrimaryColor:string
The primary color of the gadget. This will be used to overwrite the default color.
The default is set in ou.spc.ptpREQ.clientHeaderCode.css.gadgets:
const chroma = require("chromaColorTool");
const signalColor = chroma("signalcolor");
const primaryColor = signalColor;
const gadgetsCss = `
.ptpRequest-gadget-wrapper {
--gadget-primary-color: ${primaryColor};
}
`;
progress?
optionalprogress:ProgressProps["customStyles"]
getCssClassForStep()?
optionalgetCssClassForStep: (step) =>Record<string,boolean|undefined>
A function to define custom css classes for each step of the progress gadget. If not defined the following classes will be used:
{
"progress-step-completed": step.completed,
"progress-step-active": step.isCurrentStep,
"progress-step-success": step.success === true,
"progress-step-failed": step.success === false,
"progress-step-skipped": step.skipped,
}
Parameters
step
Returns
Record<string, boolean | undefined>
getCurrentStepIcon()?
optionalgetCurrentStepIcon: (steps) =>string
A function to overwrite the default icon that is shown next to the title at the top of the gadget. If not defined the icon of the current step will be used.
Parameters
steps
Step[]
Returns
string
getCurrentStepIconStyles()?
optionalgetCurrentStepIconStyles: (steps) =>CSSProperties
A function to overwrite the default styles of the icon that is shown next to the title. If not defined there will be no styles applied.
Parameters
steps
Step[]
Returns
CSSProperties
sectionOverwrites?
optionalsectionOverwrites:SectionOverwrites
An object to define overwrites for different sections of the gadget.
sectionTemplates?
optionalsectionTemplates:SectionTemplates
An object to define custom templates that will be shown after the specified section respectively.
customCss?
optionalcustomCss:string
A string of custom CSS that will be applied to the gadget.