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

Renderer.add should allow us to inject a component at the specified index #21

Open
himanshu-satija opened this issue Feb 11, 2021 · 0 comments

Comments

@himanshu-satija
Copy link
Collaborator

Currently it is not possible to inject a component at a specific index. It is just pushed to the end in the given slot.

this.pluginStore.executeFunction("Renderer.add", "header-right", () => <Button>Hello world!</Button>);

While we can achieve the required order by changing the order of installation of plugins, it is not the best way because the order of installation should be independent of the order of components in UI.

We need to be able to specify an index with this method.

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

No branches or pull requests

1 participant