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

Progress Percentage inside loading bar #49

Open
gaarenstroom opened this issue Aug 9, 2016 · 1 comment
Open

Progress Percentage inside loading bar #49

gaarenstroom opened this issue Aug 9, 2016 · 1 comment

Comments

@gaarenstroom
Copy link

Hello,

I would like to know if its possible to show the progress of the loading bar.
For example:
http://www.tennodrops.com/relics/

I recreated the page above with the Nanobar (the one above conflicts allot(html css build))
But i can't figure out a way to add the percentage numbers inside the bar.

Thankyou

@jacoborus
Copy link
Owner

jacoborus commented Aug 23, 2016

Hello, I didn't design the progress bar to do that, but you can try changing the innerHTML of the element:

const progress = nanobar({
  id: 'my-id'
})

function go (x) {
  progress.go(x)
  progress.el.lastChild.innerHTML(x)
}

go(30)

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