Properties
Name | Attribute | Type | Description |
---|---|---|---|
headerLabel | header-label |
|
Title text to be displayed in header area. |
headerAlign | header-align |
|
Header text horizontal alignment: - left Align header to the left.- center Align header to the center.- right Align header to the right. |
hide | hide |
|
If true, will hide the modal. |
noHeader | no-header |
|
If true, will not display the header section of the modal |
noFooter | no-footer |
|
If true, will not display the footer section of the modal |
noFullscreen | no-fullscreen |
|
If true, will not apply the modal as fullscreen on mobile viewports. |
dir | dir |
|
Used to set the base direction of text for display |
lang | lang |
|
Used to identify the language of text content on the web |
Static Functions
Name | Parameters | Returns | Description |
---|---|---|---|
show |
|
|
Creates a new Modal element with the provided context and appends it to the DOM (either to document body or to provided target parent element). |
Events
Name | Type | Description |
---|---|---|
click-outside |
|
Dispatched when a click or touch occurs outside the modal container. |
Types
Name | Type |
---|---|
ModalInit |
|
Slots
Name | Description |
---|---|
|
Used to define content that is displayed while async rendering is awaiting, or when renderLoading() is implicitly called |
|
Content to render inside the component header. |
|
Content to render inside the component body. |
|
Content to render inside the component footer. |
Theme Variables
Name | Description |
---|---|
|
Theme primary color. |
|
Theme primary hover color. |
|
Theme primary active color. |
|
Theme accent color. |
|
Theme accent hover color. |
|
Theme accent active color. |
|
Theme background color. |
|
Theme background hover color. |
|
Theme background active color. |
|
Theme font color. |
|
Theme disabled border color. |
|
Theme disabled background color. |
|
Theme disabled background color. |
|
Theme error border color. |
|
Theme hint font color. |
|
Theme inactive color. |
|
Theme inactive color. |
|
Theme font family. |
|
Theme font size. |
|
Theme font weight. |
|
Theme border radius. |
|
Theme border width. |
|
Theme box shadow. |
Component Variables
Name | Description |
---|---|
|
Top position for wrapping HTMLDialogElement . |
|
Left position for wrapping HTMLDialogElement . |
|
Right position for wrapping HTMLDialogElement . |
|
Bottom position for wrapping HTMLDialogElement . |
|
Background for wrapping HTMLDialogElement backdrop. |
|
Padding for modal content container. |
|
Box shadow for modal content container. |
|
Max width for modal content container. |
|
Min width for modal content container. |
|
Max height for modal content container. |
|
Font color for modal header. |
|
Font family for modal header. |
|
Font size for modal header. |
|
Font weight for modal header. |
|
Background for modal header. |
|
Left padding for modal header. |
|
Top padding for modal header. |
|
Right padding for modal header. |
|
Bottom padding for modal header. |
|
Border radius for modal header. |
|
Font color for modal body. |
|
Font size for modal body. |
|
Font family for modal body. |
|
Font weight for modal body. |
|
Padding for modal body. |
|
Background for modal body. |
|
Overflow for modal body. |
|
Top border radius for modal body when there is no header. |
|
Bottom border radius for modal body when there is no footer. |
|
Text align for modal footer. |
|
Padding for modal footer. |
|
Font color for modal footer. |
|
Font family for modal footer. |
|
Font size for modal footer. |
|
Font weight for modal footer. |
|
Background for modal footer. |