Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
v-pagination
Advanced tools
Readme
Note: This package is for use with Vuejs 1. For version 2 please use vue-pagination-2 instead.
Simple, generic and non-intrusive pagination component for Vue.js. Presentation is based on bootstrap.
Compile the code using browserify
with the stringify
transform
npm install v-pagination
Require the script:
var VuePagination = require('v-pagination');
Import the compiled standalone file into your HTML, which will expose a global VuePagination
variable.
Vue.use(VuePagination)
HTML:
<pagination for="some-entity" :records="500"></pagination>
props:
for
string
required
unique identifier for the component instance.records
number
required
number of recordsper-page
number
optional
records per page. Default: 25chunk
number
optional
max pages per chunk. Default: 10count-text
string
optional
total records text. Default: '{count} records'When a page is selected an event will be dispatched, using the unique id for the component. Listen to it and respond accordingly:
this.$on('vue-pagination::some-entity', function(page) {
// display the relevant records using the page param
});
To programmatically set the page apply a v-ref
identifier to the component and use one of the following methods:
setPage(page)
next()
prev()
nextChunk()
prevChunk()
All methods return true
if the page is legal and was thus set, or false
otherwise.
totalPages
totalChunks
currentChunk
FAQs
Vue.js pagination component
The npm package v-pagination receives a total of 136 weekly downloads. As such, v-pagination popularity was classified as not popular.
We found that v-pagination demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.