Props interface for the IMasterDetail component.

interface IMasterDetailProps<Payload = any> {
    activeOption?: string;
    children: ReactNode;
    className?: string;
    deps?: any[];
    Error?: any;
    fallback?: (e: Error) => void;
    fixedPosHeaderAdjust?: number;
    Loader?: any;
    mode?: MasterDetailMode;
    onActiveOptionChange?: (activeOption: string, initial: boolean) => void;
    onLoadEnd?: (isOk: boolean) => void;
    onLoadStart?: () => void;
    options: IMasterDetailOption<Payload>[];
    payload?: Payload;
    style?: any;
    sx?: any;
    throwError?: boolean;
    title?: string;
    withFixedPos?: boolean;
    withMenuCollapse?: boolean;
    withTransparentTabs?: boolean;
}

Type Parameters

  • Payload = any

    The type of the payload data.

Properties

activeOption?: string

The currently active option.

children: ReactNode

The child components of the master detail component.

className?: string

The CSS class name for the component.

deps?: any[]

The dependencies for the component.

Error?: any

The error component to use.

fallback?: (e: Error) => void

The fallback function in case of an error.

fixedPosHeaderAdjust?: number

The number of pixels to adjust the header when the component has a fixed position.

Loader?: any

The loader component to use.

The mode of the master detail component.

onActiveOptionChange?: (activeOption: string, initial: boolean) => void

Callback function called when the active option is changed.

onLoadEnd?: (isOk: boolean) => void

Callback function called when the data loading ends.

onLoadStart?: () => void

Callback function called when the data loading starts.

The options for the component.

payload?: Payload

The payload data.

style?: any

The inline style for the component.

sx?: any

The custom styling props for the component.

throwError?: boolean

Determines if an error should be thrown.

title?: string

The title of the component.

withFixedPos?: boolean

Determines if the component should have a fixed position.

withMenuCollapse?: boolean

Determines if the menu should collapse when the detail view is open.

withTransparentTabs?: boolean

Determines if the tabs should have a transparent background.