Coverage for gws-app / gws / plugin / model_widget / password / __init__.py: 0%
14 statements
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-03 10:12 +0100
« prev ^ index » next coverage.py v7.13.4, created at 2026-03-03 10:12 +0100
1"""Password widget."""
3import gws
4import gws.base.model.widget
6gws.ext.new.modelWidget('password')
9class Config(gws.base.model.widget.Config):
10 """Password widget."""
12 placeholder: str = ''
13 """Password input placeholder."""
14 withShow: bool = False
15 """Create a "show password" button."""
18class Props(gws.base.model.widget.Props):
19 placeholder: str
20 withShow: bool
23class Object(gws.base.model.widget.Object):
24 def props(self, user):
25 return gws.u.merge(
26 super().props(user),
27 placeholder=self.cfg('placeholder'),
28 withShow=self.cfg('withShow'),
29 )