@limetech/lime-elements
Version:
24 lines • 774 B
TypeScript
/**
* Container to keep track of all snackbar elements that gets added to the page.
* When an element gets added or removed, the container will emit a
* `changeOffset` event on all elements in the container, letting them know
* the new offset to where they should position themselves.
*/
export declare class SnackbarContainer {
private snackbarElements;
/**
* Add a new element to the container
*
* @param snackbar - element to add
*/
add(snackbar: HTMLLimelSnackbarElement): void;
/**
* Remove an element from the container
*
* @param snackbar - element to remove
*/
remove(snackbar: HTMLLimelSnackbarElement): void;
private emitOffsets;
private getPopover;
}
//# sourceMappingURL=container.d.ts.map