Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/extensible-areas/floating-window/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export class FloatingWindow implements FloatingWindowInterface {

boxShadow: string;

zIndex?: number;

contentFunction: (element: HTMLElement) => ReactDOM.Root;

/**
Expand All @@ -32,6 +34,7 @@ export class FloatingWindow implements FloatingWindowInterface {
* @param movable - tells whether the floating window is movable or static.
* @param backgroundColor - background color of the floating window.
* @param boxShadow - box shadow to apply to the floating window
* @param zIndex - z-index of the floating window (Optional).
* @param contentFunction - function that gives the html element to render the content of
* the floating window. It must return the root element where the floating window was rendered.
*
Expand All @@ -44,6 +47,7 @@ export class FloatingWindow implements FloatingWindowInterface {
movable,
backgroundColor,
boxShadow,
zIndex,
contentFunction,
}: FloatingWindowProps) {
if (id) {
Expand All @@ -54,6 +58,7 @@ export class FloatingWindow implements FloatingWindowInterface {
this.movable = movable;
this.backgroundColor = backgroundColor;
this.boxShadow = boxShadow;
this.zIndex = zIndex;

this.contentFunction = contentFunction;
this.type = FloatingWindowType.CONTAINER;
Expand Down
1 change: 1 addition & 0 deletions src/extensible-areas/floating-window/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface FloatingWindowProps {
movable: boolean;
backgroundColor: string;
boxShadow: string;
zIndex?: number;
contentFunction: (element: HTMLElement) => ReactDOM.Root;
}

Expand Down