org.dominokit.domino.ui.modals.ModalDialog Maven / Gradle / Ivy
package org.dominokit.domino.ui.modals;
import elemental2.dom.Node;
public class ModalDialog extends BaseModal {
public ModalDialog(String title) {
super(title);
init(this);
}
public ModalDialog() {
init(this);
}
public static ModalDialog create(String title) {
return new ModalDialog(title);
}
public static ModalDialog create() {
return new ModalDialog();
}
public static ModalDialog createPickerModal(String title, Node content) {
ModalDialog modal = ModalDialog.create(title)
.styler(style -> style
.add(ModalStyles.PICKER_MODAL))
.small()
.setAutoClose(true)
.appendChild(content);
return modal;
}
}