I am currently trying for the first time to set up some tables in habpanel with the template method.
I noticed that when I copy code out of the browser into another program an back again it does not work. It showed me at some point the > in red, but I did not change anything.
Moreover sometimes it just shows the code and not what it should show if I click play. I do not know how to debug, could anyone help?
I have tested before and after my changes and it solved the problem. It works fine and I get no errors more.
Post your actual code please and the configuration for the used group and items.
It works now for me. Just the question wether you have a good way of debugging those things rather than really looking at where I could have forgotten something? Maybe it was too late yesterday…
There´s no log that would tell me where the error happens, right? Which line for instance…?
Debugging it is actually pretty easy, because everything inside curly braces is intepreted as angularjs - and thus javascript - language. Your browser has a javascript console that you can bring up pressing F12.
When you are working on your template widget, open the the Console with F12 (and click on the Console tab) before you save and run your HABPanel dashboard. Your browser will look like this:
The console will spit out some error messages that may seem cryptic at first. There you already have a hint what the error is (something unterminated (un-closed)) and somewhere near position_y:
You can click on the link to read a documented error message on the angularjs.org website. By clicking it, any content that is contained in the link will be sent to angularjs.org, so ensure that it doesn’t contain any secrets you don’t want to send anywhere. Click on it and read the full error: