Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dart/Polymer loading screen?

I want to give users some visual feedback during load in. I'm wondering if there is a way to hook into the polymer loading/binding phase so that a loading screen can be shown to the user? Silverlight has something like this where you can show a customizable progress bar while it is downloading.

If there is a way, how is it done with Dart?

like image 525
John Evans Avatar asked May 13 '26 21:05

John Evans


1 Answers

This example (JS) shows how to do a splash screen using native HTML Imports, without Polymer: http://jsbin.com/wozorebo/4/quiet

It also shows how to use the CSS :unresolved pseudo-class.

With Polymer, you can listen for the polymer-ready event to do something similar. Apply a class on the body element when that event fires.

like image 50
ebidel Avatar answered May 15 '26 12:05

ebidel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!