Description of createComponent*() method in component#1018
Open
mildabre wants to merge 46 commits intonette:masterfrom
Open
Description of createComponent*() method in component#1018mildabre wants to merge 46 commits intonette:masterfrom
mildabre wants to merge 46 commits intonette:masterfrom
Conversation
2a04889 to
a942b03
Compare
69f3ba3 to
86bc30c
Compare
dde4632 to
aeb9ddb
Compare
Member
|
That’s actually how the page starts. There is an example with |
Contributor
Author
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.