Interface RequestFullscreenAction.RequestFullscreenJs
- All Superinterfaces:
Serializable
- Enclosing class:
RequestFullscreenAction
@JsDefinition
public static interface RequestFullscreenAction.RequestFullscreenJs
extends Serializable
How fullscreen is requested, as snippets for
JsSnippets.of(Class).
For internal use only. May be renamed or removed in a future release.
-
Method Summary
Modifier and TypeMethodDescriptionrequestComponentFullscreen(Element target, Element wrapper) An action that requests fullscreen for an element, moving it into the wrapper element of the UI.An action that requests fullscreen for the whole page.
-
Method Details
-
requestPageFullscreen
@JsExpression("return window.Vaadin.Flow.fullscreen.requestPageFullscreen()") JsFunction requestPageFullscreen()An action that requests fullscreen for the whole page.- Returns:
- the action function, which returns the promise of the request
-
requestComponentFullscreen
@JsExpression("return window.Vaadin.Flow.fullscreen.requestComponentFullscreen($0, $1)") JsFunction requestComponentFullscreen(Element target, Element wrapper) An action that requests fullscreen for an element, moving it into the wrapper element of the UI.- Parameters:
target- the element to show in fullscreenwrapper- the wrapper element of the UI- Returns:
- the action function, which returns the promise of the request
-