Skip to main content

inno-modal

Modal example

Overview

Represents the main frame of the modal component.

Properties

PropertyAttributeDescriptionTypeDefault
animationanimationShould the modal be animatedbooleantrue
backdropbackdropShow a backdrop behind the modal dialogbooleantrue
centeredcenteredCentered modalbooleanfalse
closeOnBackdropClickclose-on-backdrop-clickDismiss modal on backdrop clickbooleantrue
closeOnEscapeclose-on-escapeIf set to true the modal can be closed by pressing the Escape keybooleantrue
fixedfixedBy default the modal always opens at the top and the InnoModal component automatically scrolls to it. Set this to true if you want the modal to be always in a fixed position no matter where you scroll.booleanfalse
sizesizeModal size"360" | "480" | "600" | "720" | "840" | "fit-content" | "full-screen" | "full-width"'720'
variantvariantTheme variant of the component."dark" | "light"'light'

Events

EventDescriptionType
dialogCloseDialog closeCustomEvent<any>
dialogDismissDialog cancelCustomEvent<any>

Methods

closeModal<T = any>(reason: T) => Promise<void>

Close the dialog

Parameters

NameTypeDescription
reasonT

Returns

Type: Promise<void>

dismissModal<T = any>(reason?: T) => Promise<void>

Dismiss the dialog

Parameters

NameTypeDescription
reasonT

Returns

Type: Promise<void>

showModal() => Promise<void>

Show the dialog.

Returns

Type: Promise<void>


Built with StencilJS