Socket
Socket
Sign inDemoInstall

@kurukururuu/ramen-adonis-pagination-component

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kurukururuu/ramen-adonis-pagination-component

Vue.js Pagination Component for ordentid/ramen-adonis backend service.


Version published
Maintainers
1
Created
Source

ramen-pagination-template

Vue.js Pagination Component for ordentid/ramen-adonis backend service.

Installation

npm install @kurukururuu/ramen-adonis-pagination-component

Usage

  • Import directly on your template
import PaginationComponent from '@kurukururuu/ramen-adonis-pagination-component'
export default {
	// ...
	components: {
		PaginationComponent
	}
	// ...
}
  • Use Nuxt.js plugin
// '/plugin/RamenPaginationTemplate.js'
import Vue from 'vue'
import PaginationComponent from '@kurukururuu/ramen-adonis-pagination-component';
Vue.use(PaginationComponent)

Example Usage

<!-- 'YourPage.vue' -->
<template>
	<PaginationComponent
		:data="list"
		text-nav
		@pagechanged="paginationChanged"
		/>
</template>

Options

Property NameTypeDescriptionDefault
dataObjectrequired; {data: Object, pagination: Object} from ramen-rest responsenone
textNavBooleannavigation label. true for text-based, or false for symbolfalse
firstTextStringcustom label for first pageFirst Page
lastTextStringcustom label for last pageLast Page
prevTextStringcustom label for previous buttonPrevious
nextTextStringcustom label for next buttonNext
emptyTextStringcustom text when data is emptyNo Data Available

Listeners

Listener NameTypeDescriptionDefault
pageChangedfunctionhandler function after page is changed. No default handler. Object passed to the listener are {action:'previous / next / page-changed',page_destination:Number(page)}

Customize configuration

See Configuration Reference.

License

MIT

Keywords

FAQs

Package last updated on 24 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc