Uses of Class
com.vaadin.flow.dom.JsFunction
Packages that use JsFunction
Package
Description
Trigger API and its internal wiring.
-
Uses of JsFunction in com.vaadin.flow.component
Methods in com.vaadin.flow.component with parameters of type JsFunctionModifier and TypeMethodDescriptionvoidShortcutRegistration.ShortcutJs.registerKeydownDelegate(JsFunction locateDelegate, String requiredModifiers, String forbiddenModifiers, boolean checkBoundary, boolean resetFocus, boolean allowDefault, String... keys) Relays the keydown events of an element that only exists in the browser to the element this definition was obtained from, the listen-on component of a shortcut.static RegistrationShortcuts.setShortcutListenOnElementLocator(JsFunction elementLocator, Component listenOnComponent) Setup an element, that is only accessible on the browser (not server side), to listen for shortcut events on and delegate to the given component. -
Uses of JsFunction in com.vaadin.flow.component.internal
Methods in com.vaadin.flow.component.internal that return JsFunctionModifier and TypeMethodDescriptionDeclares the function that loads a chunk, forPage.addDynamicImport(JsFunction). -
Uses of JsFunction in com.vaadin.flow.component.page
Methods in com.vaadin.flow.component.page with parameters of type JsFunctionModifier and TypeMethodDescriptionvoidPage.addDynamicImport(JsFunction dynamicImport) Adds a dynamic import that calls the given function, which is supposed to return a JavaScriptPromise. -
Uses of JsFunction in com.vaadin.flow.component.trigger.internal
Methods in com.vaadin.flow.component.trigger.internal that return JsFunctionModifier and TypeMethodDescriptionabstract JsFunctionBuilds theJsFunctionthat yields this input's value when called.protected abstract JsFunctionBuilds theJsFunctionthat runs this action when the surrounding trigger fires.protected final JsFunctionprotected JsFunctionprotected JsFunctionprotected final JsFunctionFinal by design — subclasses customise the rendered JS throughPromiseAction.toPromiseJs(com.vaadin.flow.component.trigger.internal.Trigger), never by overriding the wiring that subscribes to the promise.protected JsFunctionprotected abstract JsFunctionPromiseAction.toPromiseJs(Trigger trigger) Subclasses return aJsFunctionthat, when invoked with the trigger's event, evaluates to aPromise.protected JsFunctionReadFromClipboardAction.toPromiseJs(Trigger trigger) protected JsFunctionRequestFullscreenAction.toPromiseJs(Trigger trigger) protected JsFunctionShareAction.toPromiseJs(Trigger trigger) protected JsFunctionWriteToClipboardAction.toPromiseJs(Trigger trigger) Methods in com.vaadin.flow.component.trigger.internal with parameters of type JsFunctionModifier and TypeMethodDescriptionprotected RegistrationDomEventTrigger.install(JsFunction action) protected RegistrationSizeTrigger.install(JsFunction action) protected RegistrationTimeoutTrigger.install(JsFunction action) protected abstract RegistrationTrigger.install(JsFunction action) Installs the given rendered action as a client-side listener and returns theRegistrationthat detaches it. -
Uses of JsFunction in com.vaadin.flow.dom
Methods in com.vaadin.flow.dom that return JsFunctionModifier and TypeMethodDescriptionstatic JsFunctionCreates a JavaScript function value with the given body and captured parameters.static JsFunctionJsFunction.ofDeclaredCall(JsCall call) Creates the function that a call of a method of aJsDefinitioninterface declares, which the build collects into the bundle.JsFunction.withArguments(String... argumentNames) Returns a copy of this function that declares the given names as positional runtime arguments.