Package com.vaadin.flow.component
Class ScrollOptions
java.lang.Object
com.vaadin.flow.component.ScrollOptions
- All Implemented Interfaces:
Serializable
@Deprecated(since="25.0",
forRemoval=true)
public class ScrollOptions
extends Object
implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
Options for scrollIntoView.
See https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated, for removal: This API element is subject to removal in a future version.Alignment for scrollIntoView.static enumDeprecated, for removal: This API element is subject to removal in a future version.Scroll behavior for scrollIntoView. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Create an instance with the default options.ScrollOptions(ScrollOptions.Behavior behavior) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with the given scroll behavior.ScrollOptions(ScrollOptions.Behavior behavior, ScrollOptions.Alignment block, ScrollOptions.Alignment inline) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with the given scroll options. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets the scroll behavior.getBlock()Deprecated, for removal: This API element is subject to removal in a future version.Gets the vertical alignment.Deprecated, for removal: This API element is subject to removal in a future version.Gets the horizontal alignment.voidsetBehavior(ScrollOptions.Behavior behavior) Deprecated, for removal: This API element is subject to removal in a future version.Sets the scroll behavior.voidsetBlock(ScrollOptions.Alignment block) Deprecated, for removal: This API element is subject to removal in a future version.Sets the vertical alignment.voidsetInline(ScrollOptions.Alignment inline) Deprecated, for removal: This API element is subject to removal in a future version.Sets the horizontal alignment.toJson()Deprecated, for removal: This API element is subject to removal in a future version.Convert to json in a form compatible with element.scrollIntoView.
-
Constructor Details
-
ScrollOptions
public ScrollOptions()Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with the default options. -
ScrollOptions
Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with the given scroll behavior.- Parameters:
behavior- the behavior
-
ScrollOptions
public ScrollOptions(ScrollOptions.Behavior behavior, ScrollOptions.Alignment block, ScrollOptions.Alignment inline) Deprecated, for removal: This API element is subject to removal in a future version.Create an instance with the given scroll options.- Parameters:
behavior- the behaviorblock- the vertical alignmentinline- the horizontal alignment
-
-
Method Details
-
setBehavior
Deprecated, for removal: This API element is subject to removal in a future version.Sets the scroll behavior.- Parameters:
behavior- the behavior
-
getBehavior
Deprecated, for removal: This API element is subject to removal in a future version.Gets the scroll behavior.- Returns:
- the behavior
-
setBlock
Deprecated, for removal: This API element is subject to removal in a future version.Sets the vertical alignment.- Parameters:
block- the vertical alignment
-
getBlock
Deprecated, for removal: This API element is subject to removal in a future version.Gets the vertical alignment.- Returns:
- the vertical alignment
-
setInline
Deprecated, for removal: This API element is subject to removal in a future version.Sets the horizontal alignment.- Parameters:
inline- the horizontal alignment
-
getInline
Deprecated, for removal: This API element is subject to removal in a future version.Gets the horizontal alignment.- Returns:
- the horizontal alignment
-
toJson
Deprecated, for removal: This API element is subject to removal in a future version.Convert to json in a form compatible with element.scrollIntoView.- Returns:
- a json object as a string
-
Element.scrollIntoView(ScrollIntoViewOption...)withScrollIntoViewOption.Behavior,ScrollIntoViewOption.Block, andScrollIntoViewOption.Inlineoptions instead