Hello, I have created by code a groupTable with ValueGroupDatasource, now what I would like to add to this table by code is a buttonspanel with the Excel button and its corresponding action, any example to do this by code?
Thank you and greetings.
Hi,
you can add Buttons Panel to the Group Table using the setButtondPanel() method. Here is the simple example
@Override
public void init(Map<String, Object> params) {
ButtonsPanel buttonsPanel = componentsFactory.createComponent(ButtonsPanel.class);
Button button = componentsFactory.createComponent(Button.class);
button.setAction(ExcelAction.create(groupTable));
buttonsPanel.add(button);
groupTable.setButtonsPanel(buttonsPanel);
}
Thanks Natalia.