ngx-box-resizer
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

BoxResizer

This library is used to resize a element by dragging.

Instalattion

to install this package use below command.

$ npm install ngx-box-resizer --save

Usesage

.module.ts
import { ResizerDirective } from 'ngx-box-resizer';
  declarations: [
    ...
    ResizerDirective,
  ]
.component.ts
boxReSizeInput = { 
    yResizer: true;
    yMinHeight: 500,
    yDragIndicator: `<i class='fa fa-ellipsis-h'>`
}
.html
`<div boxResizer [boxReSizeInput]="boxReSizeInput">my div with some width and height</div>`

All Inputs

export interface boxReSizeInput {
    xResizer?: boolean; // deafault true
    xMinWidth?: number;  // default 30
    xMaxWidth?: number; // default 400
    xDragIndicator?: any; // can add html content as string to change the drag indicator UI.

    yResizer?: boolean; // deafault false
    yMinHeight?: number; // default 200
    yMaxHeight?: number; // default 600
    yDragIndicator?: any; // can add html content as string to change the drag indicator UI.
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ngx-box-resizer

Weekly Downloads

0

Version

1.0.6

License

none

Unpacked Size

84.2 kB

Total Files

19

Last publish

Collaborators

  • sudharshan522