npm install ngpq-table-resize
Just need to add tableResiaze
directive to the table
<table tableResize>
...
</table>
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { ResizeModule } from 'ngpq-table-resize';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ResizeModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
fixed: Default false
If false
changes its own and its neighbor column width
If true
columns change independently of each other
the resizing-line has resize-handle
class name, with which you can change the styles