Skip to main content

Mailgo export(s)

Here the functions exported by the library mailgo

export {
getMailgoTypeByElement,
mailgoClickListener,
mailgoCheckRender, // DEPRECATED, is now mailgoClickListener
mailgoPreRender,
mailgoDirectRender,
mailgoRender,
mailgo,
start, // same as mailgo
};
export default mailgo;

Definitions#

getMailgoTypeByElement#

export function getMailgoTypeByElement(
element: HTMLElement
): MailgoModalType | null;

// TODO: more documentation here will arrive soon!

mailgoClickListener (or DEPRECATED mailgoCheckRender)#

export function mailgoClickListener(event: Event): boolean;

// TODO: more documentation here will arrive soon!

mailgoPreRender#

export function mailgoPreRender(
type: string,
mailgoElementOrUrl: HTMLLinkElement | string
): boolean;

// TODO: more documentation here will arrive soon!

mailgoDirectRender#

export function mailgoDirectRender(directUrl: string): boolean;

// TODO: more documentation here will arrive soon!

mailgoRender#

export function mailgoRender(type: string): boolean;

// TODO: more documentation here will arrive soon!

mailgo#

export default function mailgo(mailgoConfig?: MailgoConfig): boolean;

// TODO: more documentation here will arrive soon!

Last updated on by Matteo Manzinello