Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Description of createComponent*() method in component #1018

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

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
Copy link
Member

dg commented Oct 23, 2024

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

@dg dg force-pushed the master branch 4 times, most recently from fcf6992 to 6c64b1f Compare October 24, 2024 01:21
@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

@dg dg force-pushed the master branch 4 times, most recently from d08bd2a to cfaa617 Compare November 24, 2024 23:19
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