
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
vue-data-component
Advanced tools
A straightforward Vue component to filter, sort and paginate data
Work in progress!
vue-data-component
is a renderless component to build data-driven interfaces. Especially interfaces that contain filterable, sortable, or paginated data. We wanted to build something that takes care of pesky little problems like loading indicators, debouncing, or mapping your interface's filters to an AJAX request.
A brief overview of what vue-data-component
has to offer:
On their own, none of these features are super impressive, but together they enable you to build better interfaces in a uniform approach.
Please see CHANGELOG for more information what has changed recently.
With npm:
npm install vue-data-component
With yarn:
yarn add vue-data-component
This package contains a few components. You can register them all globally by installing this package as a plugin.
import Vue from 'vue';
import VueDataComponent from 'vue-data-component';
Vue.use(VueDataComponent);
Alternatively, you can import the ones you need separately.
import {
DataComponent,
QueryComponent,
DataSortToggle,
DataFilter,
DataPaginator,
} from 'vue-data-component';
vue-data-component
expects the following browser API's to be available. If you expect wider browser support, you'll need to add a polyfill.
The main component exposed by this package is the
Prop | Type | Default | Description |
---|---|---|---|
source * | Function | (required) | This function will be called to fetch data. It receives an object parameter: { query, queryString } . The function should return a response object. The response object mayb be wrapped in a promise. |
query | Object | {} | A query object. A deep watcher will be registered on the query object to determine when new data should be fetched. |
initial | Object or null | null | An initial response object so the component can render as soon as possible. |
debounceMs | Number | 0 | Data wont be subsequently fetched until the debounce time has passed. |
slowRequestMs | Number | 0 | Requests that take longer than slowRequestMs will be considered slow. See Handling slow requests. |
useQueryString | Boolean | false | When true , the browser's query string will be updated based on the current query. See Query strings. This prop is currently not supported with SSR. |
queryStringDefaults | Object or null | null | The default values for the query string. When these values match the current query values, they will be omitted from the query string. For example, you generally don't want page=1 in your URL's, since it has the same effect as no page parameter. |
Todo
Todo
Todo
Todo
yarn test
Please see CONTRIBUTING for details.
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.
We publish all received postcards on our company website.
If you discover any security related issues, please contact freek@spatie.be instead of using the issue tracker.
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
The MIT License (MIT). Please see License File for more information.
FAQs
A straightforward Vue component to filter, sort and paginate data
The npm package vue-data-component receives a total of 600 weekly downloads. As such, vue-data-component popularity was classified as not popular.
We found that vue-data-component 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
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.