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

@alameer/ngx-fancy-grid

v0.0.2

Published

This library based on a code design I found on [ColorLib](https://colorlib.com/etc/tb/Table_Fixed_Header/index.html), I found it very amazing and very fancy to be used in Angular application witgh an easy to use configurations.

Downloads

5

Readme

@alameer/ngx-fancy-grid 🎉

This library based on a code design I found on ColorLib, I found it very amazing and very fancy to be used in Angular application witgh an easy to use configurations.

Designs

npm install @alameer/ngx-fancy-grid --save

Styles and Scripts Configuration

To your angular.json add the following lines in the scripts section :

"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/jquery/jquery-3.2.1.min.js",
"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/bootstrap/js/popper.min.js",
"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/bootstrap/js/bootstrap.min.js",
"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/perfect-scrollbar/perfect-scrollbar.min.js",
"./node_modules/@alameer/ngx-fancy-grid/assets/js/main.js"

and in the styles section add the following code:

"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/bootstrap/css/bootstrap.min.css",
"./node_modules/@alameer/ngx-fancy-grid/assets/fonts/font-awesome-4.7.0/css/font-awesome.min.css",
"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/animate/animate.css",
"./node_modules/@alameer/ngx-fancy-grid/assets/vendor/perfect-scrollbar/perfect-scrollbar.css",
"./node_modules/@alameer/ngx-fancy-grid/assets/css/main.css",
"./node_modules/@alameer/ngx-fancy-grid/assets/css/util.css"

In your module

import NgxFancyGridModule in your module, in which the grid will be used.

import { NgxFancyGridModule  } from '@alameer/ngx-fancy-grid';
imports: [
    BrowserModule,
    NgxFancyGridModule
],

In your component - in .ts file

Select the design that you love, from set of an amazign designs as you will find here in ColorLib.

    design = "Elegant"; // Select one from this set: Elegant, Red, Blue, Hacker, Hover 

To identify the yoru grid headers you need to import the NGXheader model and create an arry of it, define the names of the grid headers and the width in %.

import { NGXheaders } from '@alameer/ngx-fancy-grid';


 gridHeaders : NGXheaders[] = [
    {
      name: "Name",
      width: 25
    },
    {
      name: "National ID",
      width: 25
    },
    {
      name: "Salary",
      width: 25
    },
    {
      name: "Discount Val.",
      width: 25
    }
  ];

Then create an array of data that will be presented in the grid, create your object with type any[].

make sure that your objects attributes have the same name that you gave to your headers, because ngx-fancy-grid is using the attributes names to bind the data to the grid.

This is an example for the data:

  data = [
    {
      "Name": "Alameer Ashraf",
      "National ID" : "2434344532323",
      "Salary" : "2332",
      "Discount" : "20%"
    },
        {
      "Name": "Mayan Alameer Ashraf",
      "National ID" : "23234657645",
      "Salary" : "342213",
      "Discount" : "20%"
    }
  ];

Mayan is my daughter, she is the perfect human that I've ever met 😍.

In your HTML file - .HTML

In your html code, use the ngx-fancy-grid as below:

<ngx-fancy-grid [design]="design" [headers]="gridHeaders" [data]="data"></ngx-fancy-grid>

@alameer/ngx-fancy-grid development roadmap:

  • [X] Dynamically bind data to the grid.
  • [ ] Pagination
  • [ ] Data Search.
  • [ ] Data Export as HTML, PDF, EXCEL.
  • [ ] New (4) grid designs.
  • [ ] Sorting grid data.