on 07-24-2019 12:45 PM
I put an ( HBox id = 'pizza' ) inside the BlockLayoutCell and used ( this.getView (). ById ("pizza"). GetDomRef ) on the Chart command. Gave the same error "Container not defined". I think the problem is that it is inside a view because the command works with the index.html page. How could I define the "Container" of the view ???
It probably might be a small issue. I've tried it and it worked. Please check the example below:
https://next.plnkr.co/edit/CVLrm50RukrajPBz?preview
You need to use getDomRef() and check variable "place" is initialised in the debugger. Maybe "this" in this.getId() is not having the instance of the controller? also call the draw function using the setOnLoadCallback.
You can check my above example.
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh, thanks for your attention... i tried the two forms .... without Hbox and with Hbox....the results is the same of the images.
Curious is that the CHART APPEARS but the error message continues. I change the "var place" to "var container" only to test but is not relevant. Is not necessary the Hbox ...i think.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.