Table Caption Style..

How to use 2 different style in one caption of the table.

First part is in bold.

Second part is regular.

Can I write html directly in the string?

Hey Weiqiang,

One solution is to use a Label component instead.

Label htmlLabel = new Label(
    "In HTML mode, all HTML formatting tags, such as \n" +
    "<ul>"+
    "  <li><b>bold</b></li>"+
    "  <li>itemized lists</li>"+
    "  <li>etc.</li>"+
    "</ul> "+
    "are preserved.",
    ContentMode.HTML);

Source: https://vaadin.com/book/-/page/components.label.html