SummaryGadgetOptions
SummaryGadgetOptions =
object
Properties
id
id:
string
The id of the gadget.
groupBy?
optionalgroupBy: keyofSummaryGadgetFile
Which field of the file to group the files by.
largeIcons?
optionallargeIcons:boolean
Whether to show large icons in the progress gadget.
Default
false
files
files:
SummaryGadgetFile[]
The files to display in the summary gadget.
getCurrentStepIcon()?
optionalgetCurrentStepIcon: (file) =>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
file
Returns
string
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>
customStyles?
optionalcustomStyles:object
Custom styles for the primary color and progress gadget.
gadgetPrimaryColor?
optionalgadgetPrimaryColor:string
progress?
optionalprogress:ProgressProps["customStyles"]