public interface HasPrefixAndSuffix
extends com.vaadin.flow.component.HasElement
| Modifier and Type | Method and Description |
|---|---|
default com.vaadin.flow.component.Component |
getPrefixComponent()
Gets the component in the prefix slot of this field.
|
default com.vaadin.flow.component.Component |
getSuffixComponent()
Gets the component in the suffix slot of this field.
|
default void |
setPrefixComponent(com.vaadin.flow.component.Component component)
Adds the given component into this field before the content, replacing
any existing prefix component.
|
default void |
setSuffixComponent(com.vaadin.flow.component.Component component)
Adds the given component into this field after the content, replacing any
existing suffix component.
|
default void setPrefixComponent(com.vaadin.flow.component.Component component)
This is most commonly used to add a simple icon or static text into the field.
component - the component to set, can be null to remove existing
prefix componentdefault com.vaadin.flow.component.Component getPrefixComponent()
null if no prefix
component has been setsetPrefixComponent(Component)default void setSuffixComponent(com.vaadin.flow.component.Component component)
This is most commonly used to add a simple icon or static text into the field.
component - the component to set, can be null to remove existing
suffix componentdefault com.vaadin.flow.component.Component getSuffixComponent()
null if no suffix
component has been setsetPrefixComponent(Component)Copyright © 2025. All rights reserved.