gws.plugin.model_widget.password

Password widget.

Text input that masks the typed characters, with an optional placeholder text and an optional button that reveals the password.

Example:

fields+ {
    name "password"
    type "text"
    widget { type "password" withShow true }
}

Source code: gws.plugin.model_widget.password

Package Contents

class gws.plugin.model_widget.password.Config

Bases: gws.base.model.widget.Config

Password input with masked characters.

placeholder: str = ''

Hint text shown in the empty input.

withShow: bool = False

Show a button that reveals the typed password.

class gws.plugin.model_widget.password.Object

Bases: gws.base.model.widget.Object

Password widget object.

props(user)
class gws.plugin.model_widget.password.Props

Bases: gws.base.model.widget.Props

placeholder: str
withShow: bool