Interface AbstractRouteNotFoundError.CopilotJs

All Superinterfaces:
Serializable
Enclosing class:
AbstractRouteNotFoundError

@JsDefinition public static interface AbstractRouteNotFoundError.CopilotJs extends Serializable
What this page tells Copilot, as a JavaScript definition for Element.executeJs(Class).
Since:
25.4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Tells Copilot that the project has no routes yet, waiting for it to load rather than assuming it already has.
  • Method Details

    • reportNoRoutes

      @JsExpression("(function poll() {\n if (window.Vaadin?.copilot?.noRoutesInProject) {\n window.Vaadin.copilot.noRoutesInProject();\n } else {\n setTimeout(poll, 100);\n }\n})();\n") void reportNoRoutes()
      Tells Copilot that the project has no routes yet, waiting for it to load rather than assuming it already has.