Coder Social home page Coder Social logo

angular-nested-table's Introduction

Angular Table with Column Resizing

This project is an Angular application featuring a dynamic table with column resizing, search functionality, and expandable nested rows.

Features

  • Table with expandable nested rows
  • Column resizing with min-width and max-width support
  • Search by name functionality with debounce time
  • Column ellipsis for long content
  • Horizontal scrollbar when the table width exceeds container width

Getting Started

These instructions will help you set up and run the project on your local machine.

Prerequisites

Make sure you have the following installed:

  • Node.js (12.x or later)
  • Angular CLI (12.x or later)

Installation

  1. Clone the project repository:
git clone https://github.com/rhadu/angular-nested-table.git
  1. Install the dependencies:
cd angular-nested-table
npm install
  1. Start the development server:
ng serve
  1. Open your browser and navigate to http://localhost:4200.

Usage

  • Click and drag on the column header's drag handle to resize the column.
  • Type in the search input to filter the table rows by name.
  • Click on the arrow icon in the row to expand or collapse nested rows.

Folder Structure

The folder structure of the project is organized as follows:

src/
|-- app/
    |-- data-table/
        |-- data-table.component.html
        |-- data-table.component.ts
        |-- data-table.component.scss
    |-- search-input/
        |-- search-input.component.html
        |-- search-input.component.ts
        |-- search-input.component.scss
    |-- shared/
        |-- directives/
            |-- column-resize.directive.ts
    |-- app.component.html
    |-- app.component.ts
    |-- app.config.ts
    |-- dataItem.ts
|-- assets/
|-- index.html
|-- styles.scss
|-- main.ts

License

This project is licensed under the MIT License. See the LICENSE file for details.

angular-nested-table's People

Contributors

rhadu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.