@3dsource/metabox-front-api
    Preparing search index...

    Interface Cta

    Represents the call-to-action information for an ecom configurator.

    Call-to-Action interface. Defines interactive elements and buttons for user actions within the configurator.

    Read-only CTA definition containing the label text and action URL configured in MetaBox admin. Received via ecomConfiguratorDataUpdated event. Use to render custom CTA buttons matching admin-configured actions (e.g., 'Request Quote', 'Add to Cart').

    Subscribe to ecomConfiguratorDataUpdated to receive CTA config. Use the label for button text. The actual CTA trigger is api.sendCommandToMetabox(new GetCallToActionInformation()) — which POSTs the config JSON to the callback URL. The backend returns { redirectUrl }.

    interface Cta {
        __typename: "Cta";
        callbackUrl: string;
        enabled: boolean;
        label: string;
    }
    Index

    Properties

    __typename: "Cta"

    Represents object typename for the CTA object.

    callbackUrl: string

    Callback URL using for sent configurator selected information to this url and redirected to the url after get response.

    enabled: boolean

    The indicator of whether the call-to-action is enabled or not.

    label: string

    Label of button for call-to-action.