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.
Description
AutoTypeMenuAttribute does the same thing as AddTypeMenuAttribute but specifying the path is not needed. It will automatically add the path recursively to all the sub classes as well. You can add it to both the parent class or the sub class. Adding it just for the sub class is useful for case when you still want to customize the path for other classes. Basically, this attribute is usefull if you have a lot of subclass and you don't want to specify each one.
Example 1:
A1 [AutoTypeMenu]
- B1
- B2
-- C1
-- C2
--- D1
--- D2
--- D3
---- E1
---- E2
-- C3
- B3
the search dropdown will be
B1
B2
B2/C1
B2/C2
B2/C2/D1
B2/C2/D2
B2/C2/D3
B2/C2/D3/E1
B2/C2/D3/E2
B2/C3
B3
Example 2:
A1
- B1
- B2
-- C1
-- C2 [AutoTypeMenu]
--- D1
--- D2
--- D3
---- E1
---- E2
-- C3
- B3
the search dropdown will be
B1
B2
C1
C2
C2/D1
C2/D2
C2/D3
C2/D3/E1
C2/D3/E2
C3
B3
Changes made