interface ModBaseWidgetProperties {
    scroll?: {
        enabled?: number;
        scrollYOffset?: number;
    };
    styleOverrides?: string;
    theme?: string;
    themeOverrides?: Record<string, unknown>;
    useContainedDialogs?: boolean;
}

Hierarchy (view full)

Properties

scroll?: {
    enabled?: number;
    scrollYOffset?: number;
}

Type declaration

  • Optional enabled?: number

    Upon setting this parameter to true window.history.scrollRestoration behaviour will be changed to manual in order for manual scroll to restore its position properly when navigating usign back/forward buttons.

  • Optional scrollYOffset?: number

    ' Sets offset relative to widget element offset. Usually used for adding offset for the main menu.

styleOverrides?: string

styleOverrides enables you to supply the URL of a stylesheet which will be loaded in the widget scope using <link rel="stylesheet" href={styleOverrides} type="text/css" />. To find out which CSS classes are available for override, please refer to the widget class documentation.

theme?: string

The theme property enables you to select a predefined theme to be applied to the widget.

Default

finapi
themeOverrides?: Record<string, unknown>

Our theme extends the default Material UI theme, which can be found at https://mui.com/material-ui/customization/default-theme/#main-content. themeOverrides can be used to customize the theme settings for specific cases. If you need help with this, please contact our customer support for assistance.

useContainedDialogs?: boolean

The widget will be embedded in a container that you provide. If useContainedDialogs is set to true, the dialogs and modal elements, along with the overlay, will be contained within the container. If it is set to false, the overlay and modals will cover the entire host page.

Default

true

Generated using TypeDoc