Package org.patternfly.component.modal
Class Modal
- All Implemented Interfaces:
Attachable
,Finder<HTMLElement>
,HasElement<HTMLElement,
,Modal> HasHTMLElement<HTMLElement,
,Modal> IsElement<HTMLElement>
,TypedBuilder<HTMLElement,
,Modal> Closeable<HTMLElement,
,Modal> Component
public class Modal
extends ComponentDelegate<HTMLElement,Modal>
implements Attachable, Closeable<HTMLElement,Modal>
A modal displays important information to a user without requiring them to navigate to a new page.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ModalFooter footer) add
(ModalHeader header) addFooter
(ModalFooter footer) addHeader
(ModalHeader header) appendTo
(HTMLElement element) void
attach
(MutationRecord mutationRecord) autoClose
(boolean autoClose) body()
void
static Modal
modal()
onClose
(CloseHandler<Modal> closeHandler) void
open()
that()
top()
Methods inherited from class org.patternfly.component.ComponentDelegate
componentType, element
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.elemento.Attachable
detach
-
Method Details
-
modal
-
attach
- Specified by:
attach
in interfaceAttachable
-
appendToBody
-
appendTo
-
addHeader
-
addHeader
-
add
-
addBody
-
add
-
autoClose
-
hideClose
-
maxWidth
-
size
-
top
-
width
-
that
- Specified by:
that
in interfaceTypedBuilder<HTMLElement,
Modal>
-
onClose
- Specified by:
onClose
in interfaceCloseable<HTMLElement,
Modal>
-
open
public void open() -
close
- Specified by:
close
in interfaceCloseable<HTMLElement,
Modal>
-
body
-