We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 821e6e2 commit b3d412fCopy full SHA for b3d412f
guidata/dataset/dataitems.py
@@ -580,6 +580,7 @@ class TextItem(StringItem):
580
allow_none: if True, None is a valid value regardless of other constraints
581
(optional, default=False)
582
readonly: if True, the item is read-only (optional, default=False)
583
+ regexp: regular expression for value validation (optional)
584
"""
585
586
def __init__(
@@ -591,6 +592,7 @@ def __init__(
591
592
help: str = "",
593
allow_none: bool = False,
594
readonly: bool = False,
595
+ regexp: str | None = None,
596
) -> None:
597
super().__init__(
598
label,
@@ -600,6 +602,7 @@ def __init__(
600
602
help=help,
601
603
allow_none=allow_none,
604
readonly=readonly,
605
+ regexp=regexp,
606
)
607
608
0 commit comments