We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add API, and tests, for setting/adding content to the Card component slots.
public void add(Component... content); // …and all the rest of the HasComponents API
public void setMedia(Component media) public Component getMedia()
public void setTitle(Component title) public Component getTitle()
Could add a convenience method for a string title which wraps the text in a Div():
Div()
public void setTitle(String title) // What about the getter?
public void setSubtitle(Component subtitle) public Component getSubtitle()
Same as with the title slot, could add a convenience method for a string subtitle.
title
public void setHeader(Component header) public Component getHeader()
public void setHeaderPrefix(Component headerPrefix) public Component getHeaderPrefix()
public void setHeaderSuffix(Component headerSuffix) public Component getHeaderSuffix()
public void addToFooter(Component... footer) public Component[] getFooterComponents() // Unsure if this is correct
No response
The text was updated successfully, but these errors were encountered:
More discussion about the topic at https://vaadin.com/forum/t/card-component/167926
Sorry, something went wrong.
No branches or pull requests
Describe your motivation
Add API, and tests, for setting/adding content to the Card component slots.
Describe the solution you'd like
Slots
Content (default slot)
Media
Title
Could add a convenience method for a string title which wraps the text in a
Div()
:Subtitle
Same as with the
title
slot, could add a convenience method for a string subtitle.Header
Header Prefix
Header Suffix
Footer
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: