ReferenceError: drawer is not defined
gianluca-valentini opened this issue · 5 comments
Hi,
I installed the addon but I continue to have this error when click on MenuItems.
I started from the Vaadin 10 Bakery where I change the mainView.html and MainView.java.
To modify the java code I followed the test class that is present on the repository even if in my case I extend PolymerTemplate
I also include the test custom-style in my shared-styles.html.
I'm using vaadin 10.0.4
Here the MainView.java snippet code:
`
@tag("main-view")
@HtmlImport("src/main-view.html")
@HtmlImport("frontend://styles/shared-styles.html")
@theme(Lumo.class)
@PageTitle("dashboardV10")
@Viewport(VIEWPORT)
public class MainView extends PolymerTemplate implements RouterLayout, BeforeEnterObserver {
private static final long serialVersionUID = 1L;
@Id("main")
private Div div;
private VerticalLayout main = new VerticalLayout();
private VerticalLayout container = new VerticalLayout();
private final AppLayout app = new AppLayout(new Image("/frontend/images/applogo.png", "avatar"), createAvatarComponent(), "AppLayout Vaadin 10 Demo");
@Autowired
public MainView(ConfirmDialog confirmDialog) {
container.setDefaultHorizontalComponentAlignment(Alignment.CENTER);
container.setSizeFull();
main.setPadding(false);
main.setSpacing(false);
main.setMargin(false);
app.setMenuItems(new MenuItem("About", "cloud", () -> showContent("About")));
app.setToolbarIconButtons(new MenuItem(TITLE_LOGOUT, ICON_LOGOUT, () -> UI.getCurrent().navigate(PAGE_LOGOUT)),
new MenuItem("Search", "search", () -> showContent("Search")),
new MenuItem("Close", "close", () -> Notification.show("Close action"))
);
main.add(app, container);
div.add(main);
}
`
The html is attached
main-view.zip
Thanks
Gianluca
I have the same error
Version 1.0.4
Ok I fix it
Sorry for not answering you sooner. Without taking a deep look to this, it seems something unrelated to this addon, but I'm not sure. I also see that you commented that is already fixed. Do you still need some help or I can close the issue?
Thanks for the feedback, and sorry again for the delay.
Thank you. No I change this AppLayoutAddon
This should be fixed by #33