Package com.vaadin.flow.component.trigger.internal
@NullMarked
package com.vaadin.flow.component.trigger.internal
Trigger API and its internal wiring. Not part of the public API; classes here
may be renamed or removed in any release.
-
ClassDescriptionSomething that runs on the client when a
Triggerfires.Action.Input<T>A value anActionconsumes at fire time.Forwards a value from the trigger's handler scope back to the server and hands it to aSerializableConsumeron the UI thread.Fires on the host component'sclickDOM event.Fires when the host component receives a DOM event with the given name.Fires on the host component'sdblclickDOM event.Starts a file download in the browser when the bound trigger fires.How a download is started, as a snippet forJsSnippets.of(Class).HandlerInput<T>Input that reads a property from a trigger handler'seventargument (e.g.Input that produces the source<img>element of a component, for use as the image slot ofWriteToClipboardAction.LiteralInput<T>Input backed by a server-side literal that is captured into the renderedJsFunctionand Jackson-encoded into a JS value on the client.Common super class for triggers that fire on a DOMMouseEvent?ClickTrigger,DoubleClickTrigger, and any future mouse-event trigger.TheMouseEventproperties exposed as staticAction.Inputsources.Opens a URL in a new browser tab or window viawindow.open(url, "_blank", features)when the bound trigger fires.How a URL is opened in a new tab, as a snippet forJsSnippets.of(Class).Base class for actions that run a JS expression yielding a Promise and optionally report the outcome back to the server.Information delivered to theonErrorconsumer after the promise rejects.Reads a JavaScript property from a target component's root element at the moment a trigger fires.Reads the user's clipboard vianavigator.clipboard.read()when the bound trigger fires and delivers the textual contents to the handler on the UI thread.How the clipboard is read, as a snippet forJsSnippets.of(Class).Asks the browser to enter fullscreen when the bound trigger fires.How fullscreen is requested, as snippets forJsSnippets.of(Class).Assigns a value to a JavaScript property on a target element when the bound trigger fires.NamedCallbackActionthat callsseton aValueSignal? the common case of bridging a client-side trigger into server-side signal state.Invokes the browser's native share sheet vianavigator.sharewhen the bound trigger fires.How the share sheet is opened, as a snippet forJsSnippets.of(Class).SignalInput<T>Reads the current value of a server-sideSignalat the moment a trigger fires.How the mirrored value reaches the element, as a JavaScript definition forElement.executeJs(Class).Fires when the host component's root element changes size, as reported by the browser'sResizeObserverAPI.The resize-event properties exposed as staticAction.Inputsources.Fires once, on the client, after the given delay has elapsed.Something that fires on the client when some condition is met ? a DOM event, a signal change, an observer firing, a timer elapsing, an idle timeout, aBroadcastChannelmessage, a media-query match, ? ? and, when it does, runs one or moreactions.The JavaScript of the built-in trigger inputs, as snippets forJsSnippets.of(Class): whatAction.Input.toJs(Trigger)returns.The JavaScript that the built-in triggers and actions share, as snippets forJsSnippets.of(Class): the actions that report to the server through a return channel or write an element property, and the installers that hook an action up to its trigger in the browser.Writes aClipboardItemto the user's clipboard vianavigator.clipboard.write.How the clipboard is written, as a snippet forJsSnippets.of(Class).