Show the ff.parameters if present#490
Merged
Merged
Conversation
Member
Contributor
Author
Matthbo
requested changes
Jul 9, 2026
Member
There was a problem hiding this comment.
The parameters description text does not match the text colour of other descriptions.
If an element does not have parameters or a description it'll still show the parameters section.
For some reason it also always seems to show the description div even if element.parametersDescription is empty
Member
|
Small addition to also have the table of contents on the right side showing when parameter description is available. diff --git a/frank-doc-frontend/src/app/views/details/details.component.ts b/frank-doc-frontend/src/app/views/details/details.component.ts
index 020335e..bf4f3b9 100644
--- a/frank-doc-frontend/src/app/views/details/details.component.ts
+++ b/frank-doc-frontend/src/app/views/details/details.component.ts
@@ -136,7 +136,8 @@ export class DetailsComponent implements OnInit, OnDestroy {
}
tableOfContents[index].children!.push({ name: 'Optional', anchor: '#attributes-optional', active: false });
}
- if (element.parameters) tableOfContents.push({ name: 'Parameters', anchor: '#parameters', active: false });
+ if (element.parameters || element.parametersDescription)
+ tableOfContents.push({ name: 'Parameters', anchor: '#parameters', active: false });
if (element.children) tableOfContents.push({ name: 'Nested Elements', anchor: '#nested-elements', active: false });
if ((element.forwards && Object.keys(element.forwards).length > 0) || this.hasInheritedProperties.forwards)
tableOfContents.push({ name: 'Forwards', anchor: '#forwards', active: false }); |
Contributor
Author
Thank you! I'll push your suggestion! |
Matthbo
approved these changes
Jul 9, 2026
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.


Added a block to the parameters section and modified the checks on whether to display this on the presence of this
closes #491