flow-components icon indicating copy to clipboard operation
flow-components copied to clipboard

feat: add string based title api to card

Open ugur-vaadin opened this issue 9 months ago • 1 comments

Description

Adds the following String based title API to the Card component:

  • String getTitleAsText()
  • void setTitle(String title)
  • void setTitle(String title, Integer titleHeadingLevel)
  • void setTitleHeadingLevel(Integer titleHeadingLevel)

Depends on the related web component PR and TestBench API PR.

Fixes #7212

Type of change

  • [ ] Bugfix
  • [x] Feature

Checklist

  • [x] I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • [x] I have added a description following the guideline.
  • [x] The issue is created in the corresponding repository and I have referenced it.
  • [x] I have added tests to ensure my change is effective and works as intended.
  • [x] New and existing tests are passing locally with my change.
  • [x] I have performed self-review and corrected misspellings.
  • [x] Enhancement / new feature was discussed in a corresponding GitHub issue and Acceptance Criteria were created.

ugur-vaadin avatar Mar 19 '25 15:03 ugur-vaadin

This ticket/PR has been released with Vaadin 24.7.2.

vaadin-bot avatar Apr 15 '25 14:04 vaadin-bot