
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
angular2-resizable
Advanced tools
An angular2 directive that allows an element to be dragged and resized
https://mattlewis92.github.io/angular2-resizable/demo/
An angular2 directive that allows an element to be dragged and resized
Install through npm:
npm install --save angular2-resizable
Then use it in your app like so:
import {Component} from '@angular/core';
import {Resizable} from 'angular2-resizable';
@Component({
selector: 'demo-app',
directives: [Resizable],
// you should add some styles to the element. See the demo folder for a more fleshed out example
template: '<div mwl-resizeable (onResizeEnd)="onResizeEnd($event)"></div>'
})
export class DemoApp {
onResizeEnd(event: any): void {
console.log('Element was resized', event);
}
}
You may also find it useful to view the demo source.
<script src="node_modules/angular2-resizable/angular2-resizable.js"></script>
<script>
// everything is exported on the angular2Resizable namespace
</script>
All documentation is auto-generated from the source via typedoc and can be viewed here: https://mattlewis92.github.io/angular2-resizable/docs/
npm install
while current directory is this repoRun npm start
to start a development server on port 8000 with auto reload + tests.
Run npm test
to run tests once or npm run test:watch
to continually run tests.
npm run release
MIT
FAQs
An angular2 directive that allows an element to be dragged and resized
The npm package angular2-resizable receives a total of 29 weekly downloads. As such, angular2-resizable popularity was classified as not popular.
We found that angular2-resizable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.