CellPadding on VerticalPanel (GWT)

I am trying to set the cellpadding value for my vertical panel. There is an API for installing cellpacing (CellPanel.setSpacing ()), but not for installing cellpadding.

How should I do it?

+3
source share
2 answers

You must use css for this. See the dev manual . Basically you want to set the style name in the panel using one of the setStyle * methods. After that, you use css to apply styles for the specific name.

+1
source

I did it like this:

myVerticalPanel.getElement().setAttribute("cellpadding", "5");

Answer Carnell does not work for IE7 and earlier.

+4
source

Source: https://habr.com/ru/post/1744332/


All Articles