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

Custom styled loader #3103

Closed
Closed
@Swaagie

Description

@Swaagie

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)

Activity

Swaagie

Swaagie commented on Nov 18, 2011

@Swaagie
Author

change
l o a d e r . f i n d ( " h 1 " ) . t e x t ( .mobile.loadingMessage )
to
l o a d e r . h t m l ( .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

toddparker commented on Nov 21, 2011

@toddparker
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @toddparker@Swaagie

        Issue actions

          Custom styled loader · Issue #3103 · jquery-archive/jquery-mobile