All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dominokit.domino.ui.modals.ModalDialog Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy