Skip to content

Description of createComponent*() method in component#1018

Open
mildabre wants to merge 46 commits intonette:masterfrom
mildabre:patch-7
Open

Description of createComponent*() method in component#1018
mildabre wants to merge 46 commits intonette:masterfrom
mildabre:patch-7

Conversation

@mildabre
Copy link
Contributor

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.

@dg dg force-pushed the master branch 11 times, most recently from 2a04889 to a942b03 Compare September 12, 2023 07:11
@dg dg force-pushed the master branch 7 times, most recently from 69f3ba3 to 86bc30c Compare September 22, 2023 13:07
@dg dg force-pushed the master branch 10 times, most recently from dde4632 to aeb9ddb Compare October 3, 2023 00:31
@dg
Copy link
Member

dg commented Oct 23, 2024

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

@mildabre
Copy link
Contributor Author

mildabre commented Nov 2, 2024

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

The documentation says you can add component into presenter using createComponent() in presenter. But you can use createComponent() 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants