Skip to content

bug: ion-loading custom content missing from v3 #18135

Closed

Description

@kensodemann

Bug

Ionic version:

[x] 4.x

Describe the Bug

Provide a way to specify custom content for the ion-loading component similar to how the Ionic v3 content parameter allowed HTML to be injected into the "loading" component

Describe Preferred Solution

Potentially could be handled the way it was in v3, or perhaps better by specifying a template or inject via a slot such as:

<ion-loading>
  <div class="custom-spinner-container">
    <div class="custom-spinner-box"></div>
  </div>
</ion-loading>

Additional Context
This is being requested by a community member who is trying to achieve the following:

basically, all I want to do is being able to not use the div.loading-wrapper inside of the ion-loading component, and instead, pass some HTML (typically a div that I can customize using sass) when I call loadingController.create() function

Activity

  1. added
    type: feature request
    on Apr 25, 2019
  2. brandyscarney commented on Apr 25, 2019

    @brandyscarney
    Member

    Thanks Ken! I believe this is a duplicate of #17520

  3. kensodemann commented on Apr 25, 2019

    @kensodemann
    ContributorAuthor

    Since there is a PR in to fix the docs and it is unclear exactly what the correct mechanism is to provide this functionality, I think a feature request makes more sense than a bug, so I close that one and left this one open.

  4. brandyscarney commented on Apr 25, 2019

    @brandyscarney
    Member

    Sounds good! The fix should be similar to how alert works with its message property, which is dependent on the innerHTML fix.

  5. changed the title [-]feat: ion-loading custom content[/-] [+]bug: ion-loading custom content missing from v3[/+] on May 9, 2019
  6. added
    package: core
    type: bug
    and removed
    type: feature request
    on May 9, 2019
  7. brandyscarney commented on May 9, 2019

    @brandyscarney
    Member

    As this is functionality that existed in v3 that has been removed I'm considering this a bug that it's missing.

  8. added a commit that references this issue on May 22, 2019
    3da7254
  9. ionitron-bot commented on Jun 8, 2019

    @ionitron-bot

    Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

  10. locked and limited conversation to collaborators on Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: coretype: bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions