public abstract class NotificationPosition extends Object implements Notification.Position
| Modifier and Type | Field and Description |
|---|---|
static String |
DATA_POSITION |
| Modifier | Constructor and Description |
|---|---|
protected |
NotificationPosition(String selector,
String positionProperty) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
getOffsetPosition(elemental2.dom.HTMLElement element) |
void |
onBeforeAttach(elemental2.dom.HTMLElement element)
this method will be called before attaching the notification element to the dom.
|
protected abstract void |
onBeforePosition(elemental2.dom.HTMLElement element) |
void |
onNewElement(elemental2.dom.HTMLElement element)
this method will be called everytime we try to show a new notification.
|
void |
onRemoveElement(int dataPosition,
int height)
this method will be called once the notification is completed and the notification element is
removed from the dom
|
public static final String DATA_POSITION
public void onBeforeAttach(elemental2.dom.HTMLElement element)
onBeforeAttach in interface Notification.Positionelement - the notification elementprotected abstract void onBeforePosition(elemental2.dom.HTMLElement element)
public void onNewElement(elemental2.dom.HTMLElement element)
onNewElement in interface Notification.Positionelement - the notification elementprotected abstract int getOffsetPosition(elemental2.dom.HTMLElement element)
public void onRemoveElement(int dataPosition,
int height)
onRemoveElement in interface Notification.PositionCopyright © 2019–2022 Dominokit. All rights reserved.