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 🙏

© 2026 – Pkg Stats / Ryan Hefner

vue-table-editable

v0.0.8

Published

Bootstrap editable table

Readme

Vue Editable Table Component

Project Details

Publish a b-table customized editable component vue-table-editable as a NPM module

Module Name: vue-table-editable Latest version: 0.0.5

####Component main configurations

  • tableOptions

    name | feature descriptions | value ------ | -------| ------- ttAlign | Table title alignment| left or center ttText | Table title text| any text can use ttFontsize | Table title font size| any number with px (ex:15px) ttColor | Table title text color| act as css color property rHover| Table rows hover|trueorfalse tBorder| Table cells seperate with border|trueorfalse thColor| Table header background color|dark,lightandnone deleteAlertTitle| Table row action confirmation alert message| ant text with typestring editable| Table rows edit button show or hide|trueorfalse deletable| Table rows delete button show or hide|trueorfalse filterFloats| Table filter align direction|left, centerorright pgAlign| Table pagination section alignment|left, centerorright pgPosition| Table pagination display position|toporbottom pgPerPage| Table rows per page| use anumberwhich more than 1 pgSize| Table pagination display size|sm,mdorlg imgSize| Table rows loading images size|sm,mdorlg`

  • items

    • The type of the Data which pass to components should be an Array
  • fields

    name | feature descriptions | value ------ | -------| ------- key | Table header map to items| any text that show the items data label | Table header show name| any text can use type | Table column data type| text,number and img sortable | Table column want to sort|true or false filterOn | Column data want to filter| true or false

  • output-change

    After edit or delete, a row in table sends an event called output-change

    • Return action save when row save after edit
    • Return action delete when row delete success

#####How to use editable table component

First add <TableComponent></TableComponent> to vue file
Add props as below

                <TableComponent
                :items="itemsSet"
                :fields="fieldSet"
                :tableOptions="tableOptions"
                @output-change="handleOutput">
                </TableComponent> 
                
Update database when change happened in table rows (Edit or Delete)

                handleOutput(action, data) {
                    if (action === "delete") {
                        // remove data from database
                   } else if (action === "save) {
                        // update data in database
                    }
                }   
                
Test node version: v10.17.0                                  

#####Use only edit button and hide delete button. Table title color change into green Image of Yaktocat

#####Use only edit and delete buttons. Filter and pagination both are in top of the table Image of Yaktocat

#####Edit the row when click the edit button Image of Yaktocat

#####Load images in a table Image of Yaktocat