This repository was archived by the owner on Aug 5, 2019. It is now read-only.
This repository was archived by the owner on Aug 5, 2019. It is now read-only.
Button as emptyTableWidget in CellTable/Datagrid not responding to events and wrong aligned #273
Open
Description
I have a problem with the emptyTableWidget for CellTable/Datagrid
Button emptyTableWidget = new Button("click me", IconType.PLUS_SIGN);
emptyTableWidget.setSize(ButtonSize.DEFAULT);
emptyTableWidget.setType(ButtonType.LINK);
emptyTableWidget.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.alert("click");
}
});
cellTable.setEmptyTableWidget(emptyTableWidget);
This works in some cases perfectly, and when it works, the button is centered in the empty table;
But in most of my views, clicking the Button has no effect.
The code is exactly the same, but the context/page structure of the table in the HTML is of course different;
When it does not work, the Button appears left aligned in the table/datagrid.
Very annoying type of issue....