Interface InternalWindowProps

interface InternalWindowProps {
    autoFocusSel?: string;
    initialPosition?: RelativePoint;
    isModal?: boolean;
    onCancel?: (() => void);
    onDone?: ((results?) => void);
    onHide?: (() => void);
    onShow?: (() => void);
    open?: boolean;
    refWindow?: Ref<InternalWindowElement>;
    title?: string;
}

Hierarchy (view full)

Properties

autoFocusSel?: string

Query selector for the element to focus on show.

Remarks

It would be better to honor autoFocus attribute but React is 'hiding' it

initialPosition?: RelativePoint

A default position for the window. The default is center at %50, %50.

isModal?: boolean

If true this will show a backdrop

Remarks

Our floating menu achieve modality without a background by listens to global clicks (and focus)

Default Value

false
onCancel?: (() => void)

Type declaration

    • (): void
    • Returns void

onDone?: ((results?) => void)

Type declaration

    • (results?): void
    • Parameters

      • Optional results: any

      Returns void

onHide?: (() => void)

Type declaration

    • (): void
    • Returns void

onShow?: (() => void)

Type declaration

    • (): void
    • Returns void

open?: boolean
refWindow?: Ref<InternalWindowElement>

We couldn't use the forwardRef? Revisit this. It seemed to be due to the createPortal returns a ReactPortal not an HTMLElement

title?: string

The dialog title