Interface ReplaceableLoginOverlay
- All Superinterfaces:
HasElement,Serializable
- All Known Implementing Classes:
ExtendedLoginOverlay,LoginLayout
Mixin interface providing methods for replacing contents of the LoginOverlay.
- Author:
- mlopez
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidRemoves the forgot password link from the login form.default voidRemoves the default submit button.default voidreplaceForgotPassword(HasElement withElement) Replaces the forgot password component in the login overlay.default voidreplaceFormComponents(HasElement... withElement) Replaces the contents of the login form with the provided elements.default voidreplaceHeaderComponent(HasElement withElement) Replaces the header/brand component of the login overlay.Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Method Details
-
replaceFormComponents
Replaces the contents of the login form with the provided elements. Clears existing form contents and appends the provided elements.- Parameters:
withElement- the elements to add to the form
-
replaceHeaderComponent
Replaces the header/brand component of the login overlay. Clears the brand section and appends the provided element.- Parameters:
withElement- the element to set as the new brand/header
-
removeForgotPassword
default void removeForgotPassword()Removes the forgot password link from the login form. -
replaceForgotPassword
Replaces the forgot password component in the login overlay. Clears the forgot password section and appends the provided element.- Parameters:
withElement- the element to set as the new forgot password component
-
removeSubmitButton
default void removeSubmitButton()Removes the default submit button.
-