1.2.1 • Published 11 months ago

resizable-mat-columns v1.2.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

resizable-mat-columns

Turns angular material table columns to resizable

Installation

NPM

npm install resizable-mat-columns

Import the module

import { ResizableMatColumnsModule } from "resizable-mat-columns";

@NgModule({
  declarations: [
   //some declarations
  ],
  imports: [
    //some imports
    ResizableMatColumnsModule
  ],
})

On a HTML table tag put the resizable directive

<table mat-table resizable>...</table>

And every column header change from

<th mat-header-cell *matHeaderCellDef>...</th>

to

<th resizable-mat-header *matHeaderCellDef>...</th>

That wasn't so hard, isn't it?

Table parameters

NameTypeDescription
min-columns-widthnumberMinimum width of columns. Default 50

Demo

You can try out a demo by clicking here.

Source

https://github.com/yan-libs/resizable-mat-columns/tree/develop/projects/resizable-mat-columns

1.2.1

11 months ago

1.2.0

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago