Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Vue PullToRefresh Docs #48

Open
nabilcreates opened this issue Nov 6, 2018 · 2 comments
Open

Vue PullToRefresh Docs #48

nabilcreates opened this issue Nov 6, 2018 · 2 comments

Comments

@nabilcreates
Copy link

In my experience, i think this docs is more usefull, this is because

  • not everyone would use their parent view as PullToRefresh
  • I encountered errors while trying to use it

I found the solution and maybe you can test (and obviously update the docs 💯 )

Basically main idea is to wrap PullToRefresh with StackLayout

<template>
    <Page>
        <ActionBar title="App's ActionBar" class="action-bar" />

        <StackLayout>
            <PullToRefresh @refresh="refreshList">
                <ListView class="list-group" for="item in items" @itemTap="itemTap">
                    <v-template>
                        <StackLayout class="list-group-item">

                           // CODE HERE

                        </StackLayout>
                    </v-template>
                </ListView>
            </PullToRefresh>

        </StackLayout>
            

    </Page>
</template>
@nabilcreates
Copy link
Author

In my experience, i think this example below is more useful, this is because*

@bradmartin
Copy link
Collaborator

Why not use it as the parent though? Any reason you wouldn't do that in Vue?

The PullToRefresh extends ContentView here which is the base class for the layout containers in NS so having the parent be a StackLayout shouldn't provide any additional benefit. I could be wrong though with the vue integration 😀 so let me know what you think.

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

2 participants