You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: zt_backend/models/components/list.py
+2-30Lines changed: 2 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -55,36 +55,6 @@ class ListItem(ZTComponent):
55
55
)
56
56
57
57
58
-
classListGroup(ZTComponent):
59
-
"""List Group is used to group multiple list items in one category"""
60
-
61
-
component: str=Field(
62
-
"v-list-group", description="Vue component name for List group"
63
-
)
64
-
title: str=Field("", description="Title of the List Group")
65
-
color: str=Field(None, description="Background color of the List Group")
66
-
density: str=Field(
67
-
"default",
68
-
enum=["default", "comfortable", "compact"],
69
-
description="Density of the component",
70
-
)
71
-
width: Union[int, str] =Field("100%", description="Width of the List")
72
-
height: Union[int, str] =Field("100%", description="Height of the List")
73
-
value: str=Field("", description="Expands / Collapse the list-group.")
74
-
disabled: bool=Field(False, description="removes ability to click List Item")
75
-
collapse_icon: str=Field(
76
-
"$collapse", description="Icon to display when the list item is expanded."
77
-
)
78
-
expand_icon: str=Field(
79
-
"$expand", description="Icon to display when the list item is collapsed."
80
-
)
81
-
childComponents: List[str] =Field(
82
-
[],
83
-
description="List of child component ids to be placed within the ListGroup. List Items come as child Components of the Group",
84
-
)
85
-
##subgroup:bool= Field(False, description="subgroup for List Group")
86
-
87
-
88
58
classListItemTitle(ZTComponent):
89
59
"""List Item Title is used to specify the title of the Lsit Item. Use Text component to provide the title details and pass it to the child component of List Item."""
90
60
@@ -98,6 +68,7 @@ class ListItemTitle(ZTComponent):
98
68
tag: str=Field("div", description="specify a custom tag used on root element")
99
69
100
70
71
+
# TODO: debug opacity
101
72
classListItemSubtitle(ZTComponent):
102
73
"""List Item SubtitleTitle is used to specify the Subtitle of the List Item. Use Text component to provide the text details of the subtitle and pass it to the child component of List Item"""
103
74
@@ -112,6 +83,7 @@ class ListItemSubtitle(ZTComponent):
112
83
tag: str=Field("div", description="specify a custom tag used on root element")
113
84
114
85
86
+
# TODO: debug the title prop
115
87
classListSubheader(ZTComponent):
116
88
"""List SubHeader is used to specify the Sub Header of the List. Use Text component to provide the title details and pass it to the child component of List."""
0 commit comments