For AI agents: the documentation index is at https://frontend-tools.coherent-labs.com/llms.txt, listing every page as Markdown; the full text is at https://frontend-tools.coherent-labs.com/llms-full.txt.
Skip to content
SiteEmail

gf.trigger

gf.trigger(eventName: string, data: Object)

Section titled “gf.trigger(eventName: string, data: Object)”

Triggers a custom DOM event on the document with the specified name and data.

  • eventName - The name of the custom event to dispatch.
  • data - The data to include in the event’s detail property.
  • Returns a promise that resolves when triggering custom event up is complete.
describe('Test script', function () {
it('Test 1', async () => {
await gf.trigger('custom-event');
await gf.trigger('custom-event', { testData: 1 });
});
});