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

rubber-table

v1.1.2

Published

The sources for this package are in the main HD Table repo. Please file issues and pull requests against that repo. [HD Rubber Table ](https://github.com/HishamAbonjim/hd-table) version 1.0.3.

Readme

Rubber Table

The sources for this package are in the main HD Table repo. Please file issues and pull requests against that repo. HD Rubber Table version 1.0.3.

Installation

The library is available as npm package, so all you need to do is to run the following command:

npm install rubber-table 

This command will create a record in your package.json file and install the package into the npm modules folder.

Setup Example

First thing you need to do is to import the rubber-table directives into your component.


import {RubberTable} from 'rubber-table';

Then register it by adding to the list of directives of your module:

// ...

@NgModule({
  imports: [
    // ...
    
   RubberTable,
    
    // ...
  ],
  declarations: [ ... ]
})
// ...

Usage

here are the steps: :D

  • Import RubberTable in the desired component
import {RubberTableComponent} from 'rubber-table'; 
  • Import AfterViewInit and ViewChild from '@angular/core'
import {  AfterViewInit ,ViewChild} from '@angular/core';
  • implement AfterViewInit
export class AppComponent implements  AfterViewInit {
  • define RubberTable in component
 @ViewChild(RubberTable , {static: false , read:false}  ) HDTable;
  • adding table headers
ngAfterViewInit(){ 
   this.HDTable.addHeaders( [ //#D headers
        "Final Product",
        "Product Capacity",
        "Product CapacityUnit",
        "Product Code"
      ]); 

} 
  • adding table skeleton in ngAfterViewInit()
ngAfterViewInit(){ 
 //  the first pram is the column name (used as json prop key )  by defult tag will be input & type will be text 
    this.HDTable.addColumn("FinalProduct"  );
     // specify the column tag and input type 
    this.HDTable.addColumn("ProductCode", this.HDTable.tags.input, this.HDTable.inputTypes.text);
    this.HDTable.addColumn("ProductCapacity ",  this.HDTable.tags.input, this.HDTable.inputTypes.number );  
     
     // in select tag we have to pass the lookups values for the in the column definition in the 4th column and key & value in 5th & 6th   
    this.HDTable.addColumn("ProductCapacityUnit" , this.HDTable.tags.select , "" , [{key: "ton" ,value: "10" } , {key: "Kig" ,  value:20 }]  , "key" , "value" );

   // for the primary key (Ids) column: add the hidden type in case if u want to hide the column 
   this.HDTable.addColumn("Id" , this.HDTable.tags.input ,this.HDTable.inputTypes.hidden); 
} 
  • finaly the template
// in the template add the event emitters (createdElement) , (updatedElement) & (deletedElement)
<hd-rubber-table
(deletedElement)="onDelete($event)"
(createdElement)="onCreate($event)"
(updatedElement)="onUpdate($event)"> </hd-rubber-table>
  • last piece in the component
// from the event emitters  (createdElement) , (updatedElement) & (deletedElement) you will reseive the change object or the added object 
// example: 
  onCreate($event) {
    $event["Status"] = "CREATE";  // add flage to distinguish the action   
    this.productsResult.push($event)
  }
  onDelete($event) {
    $event["Status"] = "DELETE";
   this.productsResult.push($event)
  }
  onUpdate($event) {
    $event["Status"] = "UPDATE";
     this.productsResult.push($event)
}

Features

Supported Tags

  • input
  • select

Supported input types

  • text
  • number
  • password
  • date
  • email
  • month
  • range
  • search
  • tel
  • time
  • url
  • week
  • hidden

CSS classes placeholders

you can change any element styles using the already defined classes in the html template classes:

  • hd-table-div-container

  • hd-table

  • hd-table-header

  • hd-table-header-tr

  • hd-table-header-th

  • hd-table-tbody

  • hd-table-tbody-row

  • hd-table-tbody-td

  • hd-table-select

  • hd-table-select-option

  • hd-table-input

  • hd-table-btn-edit

  • hd-table-btn-delete

  • hd-table-btn-add

  • hd-table-btn-save

toti toti :D