useTabsModal<Data extends {} = Record<string, any>, Payload = any>( __namedParameters: IParams<Data, Payload>,): { close: () => Promise<boolean>; open: ( url?: string | URL, target?: string, features?: string, ) => null | Window; pickData: () => void; render: () => Element;} Type Parameters
- Data extends {} = Record<string, any>
- Payload = any
Returns {
close: () => Promise<boolean>;
open: (
url?: string | URL,
target?: string,
features?: string,
) => null | Window;
pickData: () => void;
render: () => Element;
}
- An object containing the following methods:
- open: A behavior subject representing the open state of the modal.
- render: A function that renders the modal component.
- pickData: A function that triggers the opening of the modal.
- close: A function that closes the modal.
Readonlyclose: () => Promise<boolean>
Readonlyopen: (url?: string | URL, target?: string, features?: string) => null | Window
ReadonlypickData: () => void
Readonlyrender: () => Element
Provides a modal component for displaying tabs with content and handling user interactions.