AndrewJBateman / angular-material-table

:clipboard: Angular app to display a table using the Material library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚑ Angular Material Table

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

πŸ“„ Table of contents

πŸ“š General info

  • Table of periodic elements used to provide data for columns.

πŸ“· Screenshots

Example screenshot

πŸ“Ά Technologies

πŸ’Ύ Setup

  • Install dependencies using npm i

  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

  • Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

πŸ’» Code Examples

  • use ng breakpoint observer to see if use has a phone-sized screen or not.
ngOnInit(): void {
  this.breakpointObserver
    .observe(Breakpoints.Handset)
    .subscribe(async result => {
      this.isHandset = result.matches
    })
}

πŸ†’ Features

  • Clicking on a row will console.log the data in that row
  • Table now has a sticky header
  • Table columns now sortable

πŸ“‹ Status & To-Do List

  • Status: Working
  • To-Do: Nothing

πŸ‘ Inspiration

πŸ“ License

  • This project is licensed under the terms of the MIT license.

βœ‰οΈ Contact

  • Repo created by ABateman, email: gomezbateman@gmail.com

About

:clipboard: Angular app to display a table using the Material library

License:MIT License


Languages

Language:TypeScript 68.5%Language:HTML 18.5%Language:JavaScript 9.2%Language:CSS 3.8%