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.
sarathe-library
Advanced tools
This library will have some basic vue components which are ready to use out of the box
Readme
You can use use this pagination with both option and composition api.
Install with yarn
yarn add sarathe-library
Install with npm
npm i sarathe-library
<script setup>
import {Pagination} from 'sarathe-library';
import 'sarathe-library/dist/sarathe-lib.css'
</script>
<Pagination :items="myArr" @display="getComputedResult"/>
Pagination component accepts array or array of objects as prop and Pagination component emit and event called display.
Full Example
<template>
<div>
<table>
<tbody>
<tr v-for="displayArr in displayArray">
{{displayArr}}
</tr>
</tbody>
</table>
<Pagination :items="myArr" @display="getComputedResult"/>
</div>
</template>
<script setup>
import { ref,onMounted } from 'vue'
import {Pagination} from 'sarathe-library';
import 'sarathe-library/dist/sarathe-lib.css'
const myArr = ref([]);
let displayArray = ref([])
function getComputedResult(e) {
displayArray.value = e
}
onMounted(() => {
for(let i =1 ; i<= 290; i++){
myArr.value.push('page- ' + i)
}
})
</script>
<style scoped>
</style>
Props
Prop | isRequired | Usages | Type |
---|---|---|---|
items | yes | :items="your actual array" | Array |
itemsToDisplay | no | :items-to-display="10"; defaults to 10 | Number |
pageClass | no | page-class="css class"; Pagination css class | String |
pageStyle | no | :page-style="yourStyleObject" | Object |
pageActiveClass | no | page-active-class="cssClass"; Currently active page class | String |
pageActiveStyle | no | :page-active-style="activePageStyleObject" | Object |
disableShowingLabel | no | :disable-showing-label="true"; default to true | Boolean |
Event
Event name | isRequired | Description |
---|---|---|
display | yes | The display event emits computed array which you can use to display inside your template tag |
Credits
Siddharth Sarathe
Pragati Tanwar
FAQs
This library will have some basic vue components which are ready to use out of the box
The npm package sarathe-library receives a total of 0 weekly downloads. As such, sarathe-library popularity was classified as not popular.
We found that sarathe-library 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.