LoginMixin

external interface LoginMixin : I18nMixin

Inheritors

Properties

Link copied to clipboard
abstract var action: String

If set, a synchronous POST call will be fired to the path defined. The login event is also dispatched, so event.preventDefault() can be called to prevent the POST call.

Link copied to clipboard
abstract var disabled: Boolean

If set, disable the "Log in" button and prevent user from submitting login form. It is re-enabled automatically, when error is set to true, allowing form resubmission after user makes changes.

Link copied to clipboard
abstract var error: Boolean

If set, the error message is shown. The message is hidden by default. When set, it changes the disabled state of the submit button.

Link copied to clipboard
abstract var headingLevel: Double

Sets the root heading level (aria-level) for the heading hierarchy. Default value: 1. Child headings automatically increment from this base level i.e. standalone login form renders its title as <h1>, whereas the form in the overlay uses <h2>, as the <h1> element is used by the overlay's own title.

Link copied to clipboard
abstract var i18n: JsAny

The object used to localize this component. To change the default localization, replace this with an object that provides all properties, or just the individual properties you want to change.

Link copied to clipboard
abstract var noAutofocus: Boolean

If set, the user name field automatically receives focus when the component is attached to the document.

Link copied to clipboard

Whether to hide the forgot password button. The button is visible by default.