FlowingCode / GridExporterAddon

Apache License 2.0
10 stars 9 forks source link

FontAwesome icons are not being displayed in default export buttons #134

Closed drewharvey closed 1 month ago

drewharvey commented 1 month ago

Describe the bug

The export anchors are being created and added to the page, however, the icons are not loading/visible.

grid

source

Expected behavior

Icons should be visible.

Minimal reproducible example

var grid = new Grid<String>();
grid.addColumn(String::toString).setHeader("Name");
grid.addColumn(String::toString).setHeader("Email");

grid.setItems("A", "B", "C");

var exporter = GridExporter.createFor(grid);
exporter.setTitle("Grid Export Title");
exporter.setFileName("GridExport_" + new SimpleDateFormat("yyyyddMM").format(Calendar.getInstance().getTime()));
exporter.setAutoAttachExportButtons(true);

add(grid);

Add-on Version

2.3.2

Vaadin Version

24.4.3

Additional information

Tested in Chrome (latest)

paodb commented 1 month ago

Hi, are you using Spring? Please remember you need to add com.flowingcode to the allowed/whitelisted-packages property in your application.properties file: vaadin.allowed-packages = com.vaadin,org.vaadin,com.flowingcode.

drewharvey commented 1 month ago

@paodb you're right! That did fix it. Thank you.

drewharvey commented 1 month ago

Closing as not a valid bug.