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

jsql-smarttable

v1.1.52

Published

Manage table-like data in front-end

Downloads

16

Readme

JSQL Javascript Smart Table

JSQL is a pure javascript table manager. It is designed to be used to create advanced graphical table components with front end frameworks like react and vue. To see some of its graphical components see the JSQL-Vue project: https://github.com/db-rdz/JSQL-Vue

Installation

Install the jsql-smarttable package through npm:

npm install jsql-smarttable

and then import the package to your project:

import { TableObject } from 'jsql-smarttable';

Table Constructor

The constructor of the TableObject class takes as a parameter a single Object. You can pass the desired table information or options within this object. The following example shows all the keys that can be included in the constructor object:

Const clientsTable  = new TableObject({
  name: 'Clients',
  columns: [],
  rows: [],
  filters: [],
  options: {
    allowCellEditing: true,
    allowCellAdding: true,
    allowColumnAdding: true,
    allowColumnRemoving: true,
    allowRowAdding: true,
    allowRowRemoving: true,
    allowTableSearching: true,
    allowColumnSearching: true,
    allowFilterCreation: true,
    allowFilterDeletion: true,
    allowFiltering: true,
  },
});

API

API docs coming soon...

Examples

Examples coming soon...

Roadmap

V1

  • [x] Adding
    • [x] Adding Columns
    • [x] Adding Rows
    • [x] Adding Filters // Have some issues
  • [x] Deleting
    • [x] Deleting Columns
    • [x] Deleting Rows
    • [x] Deleting Filters
  • [ ] Editing
    • [x] Edit Table Name
    • [x] Edit Cells // Have some issues
    • [ ] Edit Columns
    • [x] Edit Filters
  • [x] Filtering // Has some issues
  • [x] Search
    • [x] Search Table
    • [x] Search Columns
  • [ ] Sortable Columns
  • [ ] Data Validation // Need to include custom Regex validation.

NOTE

This project is at a beta state and is not ready for production.

License

MIT License