Skip to content

Commit

Permalink
fix(demo): update icon constants to FontAwesome 6
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-godoy authored and paodb committed Feb 9, 2022
1 parent ffca1c9 commit 7dfac0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class IconsGalleryView extends Div {

private void showDetails(Object icon) {
DemoViewSingle view = new DemoViewSingle();
Button closeButton = new Button(FontAwesome.Regular.WINDOW_CLOSE.create());
Button closeButton = new Button(FontAwesome.Regular.SQUARE_X.create());
closeButton.addClassName("close-button");
HorizontalLayout top = new HorizontalLayout(closeButton);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SimpleDemo extends VerticalLayout {
public SimpleDemo() {

//add a button with an iron icon
add(new Button("Save", FontAwesome.Regular.SAVE.create(), ev->{
add(new Button("Save", FontAwesome.Regular.FLOPPY_DISK.create(), ev->{
Notification.show("Saved!");
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public TemplateRendererDemo() {
grid.setDataProvider(new ListDataProvider<>(personList));

grid.addColumn(TemplateRenderer.<Person>of(
"<iron-icon icon='" + FontAwesome.Solid.CHECK_CIRCLE.getIconName() + "'></iron-icon>[[item.id]]")
"<iron-icon icon='" + FontAwesome.Solid.CIRCLE_CHECK.getIconName() + "'></iron-icon>[[item.id]]")
.withProperty("id", Person::getId)).setHeader("ID");
grid.addColumn(TemplateRenderer.<Person>of(
"<iron-icon icon='" + FontAwesome.Regular.KEYBOARD.getIconName() + "'></iron-icon>[[item.name]]")
Expand Down

0 comments on commit 7dfac0f

Please sign in to comment.