An open API service indexing awesome lists of open source software.

https://github.com/ashrawan/ngb5-simple-table

A simple demo library to quickly integrate simple data with Sortable, Searchable and Pageable features in Angular app. Uses Bootstrap 5 CSS classes.
https://github.com/ashrawan/ngb5-simple-table

angular11 bootstrap5 datatable pagination searching sorting

Last synced: 6 months ago
JSON representation

A simple demo library to quickly integrate simple data with Sortable, Searchable and Pageable features in Angular app. Uses Bootstrap 5 CSS classes.

Awesome Lists containing this project

README

          



Ngb5SimpleTable




(Angular + Bootstrap 5)


<ngb5-simple-table />



The Quick way to integrate Simple Datatable with Sortable, Searchable and Pageable features in Angular app. Uses Bootstrap 5 CSS classes.


npm latest version

## Getting Started

__ngb5-simple-table__ provides simple datatable component powered by Angular. It uses Bootstrap 5 so, you need to include Bootstrap 5 with your angular app or use CSS link.

## Installation

Install `ngb5-simple-table` from `npm`:
```bash
npm install ngb5-simple-table --save
```

## Usage

Add ```Ngb5SimpleTableModule``` to your App module's ```imports```

```typescript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { Ngb5SimpleTableModule } from 'ngb5-simple-table';

import { AppComponent } from './app/app.component';

@NgModule({
imports: [BrowserModule, Ngb5SimpleTableModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})

class AppModule {}

platformBrowserDynamic().bootstrapModule(AppModule);
```

Add component to your page:
```

```

You will also need to add __Bootstrap 5__ to you app. Either add CSS to your `index.html` or you can npm install Bootstrap.
- `Bootstrap 5`
```

```


## Running Demo server

1. Run `npm run lib:build` to build the library.
2. Run `ng serve` for a running demo server.

Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.

## For Development
- Run `npm run lib:build-watch`
- Run `npm run demo:serve`

Make live changes to project lib `"ngb5-simple-table"` and test.

### [Note: Check `package.json` for more info ]


## Code scaffolding

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.