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

How to change location of loading bar #19

Open
nheath99 opened this issue Sep 11, 2021 · 4 comments
Open

How to change location of loading bar #19

nheath99 opened this issue Sep 11, 2021 · 4 comments

Comments

@nheath99
Copy link

Thanks for the great control - it's in all of my projects!

I would like to have control of the location of the loading bar on the page. At the moment it it always just inside the body tag, however I'd like to have it inside my content container. Is there any option for this?

@jsakamoto
Copy link
Owner

Is there any option for this?

At the moment, the answer is no.

But if I could add the option that the selector what specify the injection point of the loading bar contents, does it make sense?

// (Currently, this code is just one of my ideas for the future version.)
builder.Services.AddLoadingBar(options =>
{
    options.ContainerSelector = "#selector-to-container-you-provided";
});

@nheath99
Copy link
Author

Yes I think that would be a good solution!

@jsakamoto
Copy link
Owner

Thanks for your reply!

I published the new version that has the new option I posted above.

Could you try it out?

@nheath99
Copy link
Author

This doesn't work, as although the .loading-bar element is in the correct position, the .bar element has "position:fixed;", so will always be positioned relative to the view port.

I will determine the correct css values and get back to you.

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

2 participants