C - Concrete configurator typepublic interface ButtonConfigurator<C extends ButtonConfigurator<C>> extends ComponentConfigurator<C>, HasSizeConfigurator<C>, HasStyleConfigurator<C>, HasIconConfigurator<C>, HasTextConfigurator<C>, HasEnabledConfigurator<C>, HasTitleConfigurator<C>, ClickNotifierConfigurator<com.vaadin.flow.component.button.Button,ClickEvent<com.vaadin.flow.component.button.Button>,C>, FocusableConfigurator<com.vaadin.flow.component.button.Button,C>, HasAutofocusConfigurator<C>, HasThemeVariantConfigurator<com.vaadin.flow.component.button.ButtonVariant,C>, DeferrableLocalizationConfigurator<C>
Button component configurator.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ButtonConfigurator.BaseButtonConfigurator
Base button configurator.
|
ComponentConfigurator.BaseComponentConfiguratorHasIconConfigurator.IconConfigurator<C extends HasIconConfigurator<C>>FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
default C |
autofocus()
Set the button to be input focused when the page loads.
|
static ButtonConfigurator.BaseButtonConfigurator |
configure(com.vaadin.flow.component.button.Button button)
Obtain a
ButtonConfigurator to configure given Button component. |
C |
disableOnClick()
Automatically disables button when clicked, typically to prevent (accidental) extra clicks on a button.
|
C |
iconAfterText(boolean iconAfterText)
Sets whether this button's icon should be positioned after it's text content or the other way around.
|
elementConfiguration, hidden, id, visible, withAttachListener, withDetachListenerwithEventListener, withEventListener, withThemeNamefullHeight, fullSize, fullWidth, height, height, heightUndefined, maxHeight, maxWidth, minHeight, minWidth, sizeUndefined, width, width, widthUndefinedstyleName, styleNamesicon, icon, icon, iconConfigurator, iconConfigurator, iconConfigurator, iconConfiguratortext, text, textdisabled, enableddescription, description, description, title, title, titleonClick, withClickListener, withClickShortcut, withClickShortcutKeytabIndex, withBlurListener, withFocusListener, withFocusShortcut, withFocusShortcutKeyautofocuswithThemeVariantsdeferLocalization, withDeferredLocalizationisDeferredLocalizationEnabledC iconAfterText(boolean iconAfterText)
iconAfterText - Whether the icon should be positioned after the button textdefault C autofocus()
C disableOnClick()
static ButtonConfigurator.BaseButtonConfigurator configure(com.vaadin.flow.component.button.Button button)
ButtonConfigurator to configure given Button component.button - The component to configure (not null)ButtonConfigurator to configure given componentCopyright © 2019 The Holon Platform. All rights reserved.