
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@clickadilla/datatable-formatter
Advanced tools
[DataTableNet] (https://datatables.net/)
npm i @clickadilla/datatable-formatter
yarn add @clickadilla/datatable-formatter
<template>
<datatable-formatter
v-slot="{ items, loading, totalItemsCount }"
:items.sync="panels"
:loading.sync="loading"
:options.sync="options"
:headers="headers"
:fetch="fetch"
>
<v-data-table
:headers="headers"
:items="items"
:options.sync="options"
:loading="loading"
:server-items-length="totalItemsCount"
/>
</datatable-formatter>
</template>
<script>
import DatatableFormatter from '@clickadilla/datatable-formatter';
import panelsRepository from '@/services/panels-repository';
export default {
components: {
DatatableFormatter,
PanelStatus,
},
data: () => ({
fetch: panelsRepository.table,
panels: [],
loading: false,
options: {
sortBy: ['id'],
sortDesc: [true],
},
}),
computed: {
headers() {
return [
{
value: 'id',
text: this.$t('id'),
width: 150,
},
{
value: 'name',
text: this.$t('name'),
},
{
value: 'status',
text: this.$t('status'),
},
];
},
},
};
</script>
import { datatableFormaterStringified } from '@clickadilla/datatable-formatter';
import http from '@/plugins/http';
import Panel from '@/classes/Panel';
import urlFormatter from './url-formatter';
const getURL = urlFormatter({
table: '/api/v1/admin/panels',
});
export default {
table({
headers,
options,
search,
}) {
const requestBody = datatableFormaterStringified({
headers,
headersDictionary: Panel.getReversedDictionary(),
options,
search,
});
const endpoint = getURL('table');
return http.get(`${endpoint}?${requestBody}`)
.then(response => ({
items: response.data.data.map(panel => new Panel(panel)),
totalItemsCount: response.data.recordsFiltered,
}));
},
getURL,
};
FAQs
Datatables format for vue
The npm package @clickadilla/datatable-formatter receives a total of 0 weekly downloads. As such, @clickadilla/datatable-formatter popularity was classified as not popular.
We found that @clickadilla/datatable-formatter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.