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

feat: Use ion-infinite-scroll with no loading #2926

Closed
felquis opened this issue Jan 13, 2015 · 2 comments
Closed

feat: Use ion-infinite-scroll with no loading #2926

felquis opened this issue Jan 13, 2015 · 2 comments
Assignees

Comments

@felquis
Copy link

felquis commented Jan 13, 2015

Type: feat

Platform: all

I want to use the ion-infinite-scroll, but with no spinning loading, would be great some property like:

<ion-infinite-scroll show-spin="false"></ion-infinite-scroll>

Or something like that.

I only want to use it in my controller, so, maybe a service, would be better than a directive to do it.

Another thing I'm missing in this directive, is a text and the position of the text. For example, a loading icons with the text 'Loading' above the icon.

I hope it helps improve Ionic.

@Sjerd
Copy link

Sjerd commented Jan 14, 2015

You can define an icon, so if you want a non spinning icon you could do

ion-infinite-scroll
icon="ion-load-c"
on-infinite="loadMoreData()"
ng-if="moreDataCanBeLoaded"
distance="1%">
ion-infinite-scroll

or if you want none you can do

ion-infinite-scroll
icon="none"
on-infinite="loadMoreData()"
ng-if="moreDataCanBeLoaded"
distance="1%">
ion-infinite-scroll

@JiachenDuan
Copy link

You can simply add a similar method in your controller to show the loading
$scope.showloading = function (durationtime) {

        if (!durationtime) {

            $ionicLoading.show({
                template: 'Loading...',
                noBackdrop: true
            });
        } else {

            $ionicLoading.show({
                template: 'Loading...',
                noBackdrop: true,
                duration: durationtime
            });
        }

    };

@perrygovier perrygovier self-assigned this Jan 15, 2015
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants