New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ngx-resizer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-resizer

Angular Directive to make elements resizeable.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-27.27%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-resizer

Angular Directive to make elements resizeable.

Live Demo : https://mraghuram3.github.io/#/ngx-resizer

Installation

To install this library, run:

$ npm install ngx-resizer --save

Usage

Import NgxResizeModule in the root module

import { NgxResizeModule } from 'ngx-resizer';

@NgModule({
  imports: [
    // ...
    NgxResizeModule.forRoot(),
    ...
  ]
})

In your template

  <div ngxResize [resizeId]="'test1'"  class="resizeable" [width]="width" [height]="height" [left]="left" [top]="top">
    test
    <div ngxResizeRight [resizeId]="'test1'" ></div>
    <div ngxResizeLeft [resizeId]="'test1'" ></div>
    <div ngxResizeTop [resizeId]="'test1'" ></div>
    <div ngxResizeBottom [resizeId]="'test1'" ></div>
  </div>
  • ngxResize

    Add the directive to the div or other dom elemnts which is to be made into resizeable.

  • ngxResizeRight

    To enable resizeable on right side of the element.

  • ngxResizeLeft

    To enable resizeable on left side of the element.

  • ngxResizeTop

    To enable resizeable on top side of the element.

  • ngxResizeBottom

    To enable resizeable on bottom side of the element.

  • [resizeId]: string

    Pass same id to the reiszeable elemnts and handels.

  • [width]: number

    To set the width of the element in pixels.

  • [height]: number

    To set the height of the element in pixels.

  • [top]: number

    To set the top of the element in pixels.

  • [left]: number

    To set the left of the element in pixels.

License

MIT © Raghu Ram M

Keywords

FAQs

Package last updated on 30 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc