Action Column Integration
A new "Actions" column has been added to the "My Campaign" screen, allowing users to perform some task in a handy way.
Users can click on "Actions" to choose from the available action options in the menu.
Implementation:
We've added config for column actions in myCampaignConfig.js
{
label: "CAMPAIGN_ACTIONS",
jsonPath: "actions",
additionalCustomization: true,
}
In UICustomization.js, We've added component which needs to be render for the action column under additionalCustomizations.
case "CAMPAIGN_ACTIONS":
return (
<Button
className="custom-className"
type="actionButton"
variation="secondary"
label={"Action"}
options={[{ key: 1, code: "OPTION", i18nKey: t("OPTION") }]}
optionsKey="i18nKey"
showBottom={true}
isSearchable={false}
onOptionSelect={(item) => onActionSelect(item, row)}
/>
);
We have added onActionSelect function which perform action based on selected option.
File Path:
Config:
UICustomisation:
Last updated
Was this helpful?