Button

Button Wrapping Is possible like
btn.getElement().getStyle().set(“height”, “auto”);
btn.getElement().getStyle().set(“white-space”, “normal”);

Hi! The ‘btn’ button will apply these settings, but what is your question?

Button Wrapping Is possible like
btn.setLable(“Button Caption Mode”); btn.width(“70px”); btn.getElement().getStyle().set(“height”, “auto”);
btn.getElement().getStyle().set(“white-space”, “normal”); wraping the burron label if possible.

are you asking if it’s possible to make the text of a button wrap?

If so, yes, it is, with css, e.g.

vaadin-button::part(label) {
  white-space: normal;
}

The button is not really designed to wrap like that though, so it’s not going to look pretty :slightly_smiling_face:

It s works fine. Thank You Sir .:+1:

one more doubt button caption set width(100px); my button label is=Student this align=center vaadin-button::part(label) {
text-align:left;
}