quasar
Version:
Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
1 lines • 1.74 kB
JSON
{"type":"component","meta":{"docsUrl":"https://v2.quasar.dev/vue-components/pull-to-refresh"},"props":{"color":{"type":"String","tsType":"NamedColor","desc":"Color name for the icon from the Quasar Color Palette","examples":["'primary'","'teal'","'teal-10'"],"category":"style"},"bg-color":{"type":"String","tsType":"NamedColor","desc":"Color name for background of the icon container from the Quasar Color Palette","examples":["'primary'","'teal'","'teal-10'"],"category":"style"},"icon":{"type":"String","desc":"Icon to display when refreshing the content","examples":["'map'","'ion-add'","'img:https://cdn.quasar.dev/logo-v2/svg/logo.svg'","'img:path/to/some_image.png'"],"category":"content"},"no-mouse":{"type":"Boolean","desc":"Don't listen for mouse events","category":"behavior"},"disable":{"type":"Boolean","desc":"Put component in disabled mode","category":"state"},"scroll-target":{"type":["Element","String"],"desc":"CSS selector or DOM element to be used as a custom scroll container instead of the auto detected one","examples":[".scroll-target-class","#scroll-target-id","$refs.scrollTarget","document.body"],"category":"behavior"}},"slots":{"default":{"desc":"Content (area controlled by the component) goes here"}},"events":{"refresh":{"desc":"Called whenever a refresh is triggered; at this time, your function should load more data","params":{"done":{"type":"Function","desc":"Call the done() function when your data has been refreshed","params":null,"returns":null}}}},"methods":{"trigger":{"desc":"Triggers a refresh","params":null,"returns":null},"updateScrollTarget":{"desc":"Updates the scroll target; Useful when the parent elements change so that the scrolling target also changes","params":null,"returns":null}}}