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

Sub components of components can be ordered via options #2354

Open
Ricagraca opened this issue Jul 13, 2023 · 1 comment
Open

Sub components of components can be ordered via options #2354

Ricagraca opened this issue Jul 13, 2023 · 1 comment

Comments

@Ricagraca
Copy link
Contributor

Ricagraca commented Jul 13, 2023

Describe the problem to be solved
Currently, the configuration of the redoc standalone component is very limited for developers regarding the position/order of the elements. For example, it would be nice to have an option to set the rendering of the Endpoint after the Description in the middle panel. For this reason, it would be nice to have a more flexible configuration for where to render these sub components.

Describe the solution you'd like
A possible solution would be to have the order set in the options of the redoc standalone component (ascending would be enough). For example:

{
        position: {
            rightPanel: {
                order: ['description', 'endpoint']
            },
        }
}

Describe alternatives you've considered
An alternative would be to have a way to easily modify the component implementation. Making it public and not as a constant. This would make it easier for developers to customize the components (not sure if this is an option without forking the repo or re-implementing from scratch these components and setting them).

Additional context
As a developer, I want to choose where each sub-component is rendered in an easy way (e.g., through the options field of the redoc standalone component).

@Ricagraca Ricagraca changed the title Sub components of the Operation component can be ordered via options Sub components of components can be ordered via options Jul 13, 2023
@adamaltman
Copy link
Member

Nice idea. Thank you. 🎉

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

No branches or pull requests

2 participants