Creating components from templates (Template or XTemplate)

I would like to be able to generate a component from a template. A use case for it is that when I create a row in a DataView, I would like to include buttons and / or other components (possibly even a nested grid) in the displayed elements.

While I look at everything that I see, it is a template that calls another template. Is there a way to do what I need (generate a component instead of plain html) from an XTemplate?

+3
source share
1 answer

XTemplate DOM, . DOM ( component.el.dom), JavaScript .

, ... XTemplate Component.applyTo Component , DOM . , , , applyTo, DOM.

XTemplate, , , applyTemplate. , Ext - HTML.

+1

Source: https://habr.com/ru/post/1793432/


All Articles