npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@jiffylive/vue-j-table

v0.8.9

Published

<h1>Vue data table with edit in place (contentEditable) & validation</h1> Creates a table with editable fields. Fields have optional validation rules and tooltip for messages.<br/> Uses vue-j-editable for the editing component. Allows different format typ

Downloads

7

Readme

Demo

  • Install the component, run "cd node_modules/@jiffylive/vue-j-table" then "npm run serve" to see examples.
  • Online demo coming soon

Why use vue-j-table?

  • Simple - Easy to create a table

  • Editable - Editable via validation rules

  • Sorting - Sort by clicking on column name. Sortable by single column or all

Inputs (props)

:field - Array of Fields including model, label, format, formatParams, component eg [{"model": "name", "label": "Name"},{"model": "emailAddress", "label": "Email address", "format": "email"}]

:items - Array of items (arrays or objects)

:allColumnsSortable - Make all columns sortable

:removeFormatting (Boolean) - Remove the initial formatting to allow application to provide formatting

:tableClass - Add extra classes eg "striped hover"

Available rules

See vue-j-editable for rule definitions More info: https://www.npmjs.com/package/@jiffylive/vue-j-editable

They include:

  • Required
  • Email
  • minLength
  • numeric
  • decimal
  • currency (not supported by vuelidate but allows a $ or € symbol to be proceeding the figure)
  • URL

Custom component

Added support for custom component per column. Specify field.component which is passed a field and item parameter.

{"model": "image", "label": "Image", "component": "ImageItem", "type": "image"},

import ImageItem from "@/components/ImageItem.vue";
Vue.component('ImageItem', ImageItem);

Installation

1. Package Manager

# With npm
npm i @jiffylive/vue-j-table
import jTable from '@jiffylive/vue-j-table';

components: {
  jTable
}

<jTable :fields="fields" :items="items" :allColumnsSortable="true" tableClass="striped hover" @updateLive="updateLive" />

Compiles and hot-reloads for development

npm run serve

License

MIT