To tribute the change a bit, I start with the problem of adding HTML code inside of a ExtJS container. I thought of three different ways - let’s take a look at them:
It’s easy to think about the first one and you can find it quite often by googling around. Just setting the
html property of a panel. The problem I am having with it is that the overhead of a panel is generated and the HTML is just static - I can’t generate similar values at runtime (e.g. a different link label in the example).
So apart from the second example that uses a template, I thought of the third solution that generates a DOM element at runtime using the
autoEl property calls this implicitly) and wraps it in a component. What do you think?