docs icon indicating copy to clipboard operation
docs copied to clipboard

Description of createComponent*() method in component

Open mildabre opened this issue 2 years ago • 2 comments

The factory method is fully explained in Presenter chapter, but there is no description in Component chapter that this method can be used here also. This factory method is often used in components, for example for independently rendered forms.

mildabre avatar May 30 '23 23:05 mildabre

That’s actually how the page starts. There is an example with createComponentPoll().

dg avatar Oct 23 '24 22:10 dg

On the start of the page https://doc.nette.org/cs/application/components#toc-tovarni-metody is described method createComponent<Name>() in presenter + But I mean something else - method createComponent<Name>() in UI\Control !!

The documentation says you can add component into presenter using createComponent<Name>() in presenter. But you can use createComponent<Name>() also in UI\Control component to add a subcomponent into component. We should add to documentation tis important information - that this method can be used not only in presenter, but also in UI\Control component

mildabre avatar Nov 02 '24 13:11 mildabre