addView for child element of view : layout.$$(...).addView is not a function

https://jsfiddle.net/0beub85a/

Solved it. Element should has “cols:” or “rows:”

It was helpful, thnx!