-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: List component #277
base: main
Are you sure you want to change the base?
fix: List component #277
Conversation
) | ||
width: Union[int, str] = Field("100%", description="Width of the List item") | ||
height: Union[int, str] = Field("100%", description="Height of the List item") | ||
value: str = Field("", description="value for List Item") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is value used on this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created the attribute as per the props in v-list-item API Docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is value used for in this context
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following up
zt_backend/models/components/list.py
Outdated
childComponents: List[str] = Field( | ||
[], description="List of child component ids to be placed within the List" | ||
) | ||
color: str = Field(None, description="Background color of the List") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default for all should not be None
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zt_backend/models/components/list.py
Outdated
[], | ||
description="List of child component ids to be placed within the ListItemTitle. Mention v-test component to show the text of Subtitle", | ||
) | ||
opacity: Union[int, str] = Field("50%", description="opacity for subtitle") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test out defaults here, how is this changing visually in the notebook?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opacity is not working even after changing the values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay let's remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contains:
ListComponent
ListGroup
ListItem
ListItemTitle
ListItemSubtitle
ListSubheader