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

org.dominokit.domino.ui.notifications.BottomLeftPosition Maven / Gradle / Ivy

There is a newer version: 1.0.139
Show newest version
package org.dominokit.domino.ui.notifications;

import elemental2.dom.Element;
import elemental2.dom.HTMLElement;
import jsinterop.base.Js;

import java.util.List;

import static elemental2.dom.DomGlobal.document;

public class BottomLeftPosition extends NotificationPosition {

    public BottomLeftPosition() {
        super("bottom-left", "bottom");
    }

    @Override
    public void onBeforePosition(HTMLElement element) {
        element.style.setProperty("bottom", "20px");
        element.style.setProperty("left", "20px");
    }

    @Override
    protected int getOffsetPosition(HTMLElement element) {
        return 20;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy