Edit page

Use Actions

Here is rendering actions(shown as icons/buttons first) in Main

import {ActionsRender} from 'digimaker-ui';
//...
// actionsConfig is a list of actions, supporting component and link
<ActionsRender
actionProps={{
from: content,
params: {
content: content,
afterAction: (redirect: boolean) =>
afterAction(redirect),
} as ContentActionParams,
fromview: "content",
}}
actionsConfig={mainConfig.actions}
/>
//...

Properties

Here are properties of ActionsRender

Prop nameTypeDefaultRequiredDescription
actionsConfig{}true

action configs

actionPropsActionPropstrue

action properties, can be list/content/inline

iconOnlybooleanfalse