Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Custom styled loader #3103

Closed
Swaagie opened this issue Nov 18, 2011 · 2 comments
Closed

Custom styled loader #3103

Swaagie opened this issue Nov 18, 2011 · 2 comments

Comments

@Swaagie
Copy link

Swaagie commented Nov 18, 2011

Top style is applied to the element div of the ui-loader. It should be possible to override this somehow as styling the position of the loader would now require workarounds.

In addition changing the string through $.mobile.loadingMessage will escape any html characters, making it impossible to add simple html like
etc. It would be great if the innerHtml of the div.ui-loader could be overridden, allowing for more flexibility (.e.g. additional elements)

@Swaagie
Copy link
Author

Swaagie commented Nov 18, 2011

change
$loader.find( "h1" ).text( $.mobile.loadingMessage )
to
$loader.html($.mobile.loadingHtml)
or a choice between the both, replace loadingMessage with object
loadingContent = {use: 'message', text: 'loading', html: 'loading'} (no html elements as it brakes github, e.g. we get styling)

@toddparker
Copy link
Contributor

This is a good idea. Can you link this up to the feature request wiki page?

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

No branches or pull requests

2 participants