org.dominokit.domino.ui.alerts.AlertLink Maven / Gradle / Ivy
package org.dominokit.domino.ui.alerts;
import elemental2.dom.HTMLAnchorElement;
import org.dominokit.domino.ui.style.Styles;
import org.dominokit.domino.ui.utils.BaseDominoElement;
public class AlertLink extends BaseDominoElement {
private final HTMLAnchorElement element;
public AlertLink(HTMLAnchorElement element) {
this.element = element;
init(this);
style().add(AlertStyles.ALERT_LINK);
}
public static AlertLink create(HTMLAnchorElement element){
return new AlertLink(element);
}
@Override
public HTMLAnchorElement element() {
return element;
}
}