
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
ngx-resizable-ex
Advanced tools
This has been adapted from the @11mb/angular-resizable, itself an Angular2 version of @reklino/angular-resizable for AngularJS. Similar work in JavaScript: @RickStrahl/jquery-resizable; Split.js by @nathancahill.
Installation instructions Install ngx-bootstrap from npm:
npm install @3dgenomes/ngx-resizable --save
Add needed package to NgModule imports:
import { NgxResizableModule } from '@3dgenomes/ngx-resizable';
@NgModule({
...
imports: [ResizableComponent,...]
...
})
Use component <rsz-layout>
to your HTML:
+--------+--------+
| > | [Directions]
Row 1 | Cell 1 > Cell 2 | Rows: dragbar on bottom 'v'
| > | Cells: dragbar on right '>'
+ v v v v v v v v +
| > |
Row 2 | Cell 3 > Cell 4 |
| > |
+--------+--------+
<div class="content">
<rsz-layout class="row" [directions]="['bottom']" [rFlex]="true">
<rsz-layout class="cell" [directions]="['right']" [rFlex]="true">
<p>Cell Content 1</p>
</rsz-layout>
<rsz-layout class="cell" [directions]="['none']" [rFlex]="false">
<p>Cell Content 2</p>
</rsz-layout>
</rsz-layout>
<rsz-layout class="row" [directions]="['none']" [rFlex]="false">
<rsz-layout class="cell" [directions]="['right']" [rFlex]="true">
<p>Cell Content 3</p>
</rsz-layout>
<rsz-layout class="cell" [directions]="['none']" [rFlex]="false">
<p>Cell Content 4</p>
</rsz-layout>
</rsz-layout>
</div>
Col 1 Col 2
+--------+--------+
| > | [Directions]
| Cell 1 > Cell 3 | Rows: dragbar on right '>'
| > | Cells: dragbar on bottom 'v'
| v v v > v v v |
| > |
| Cell 2 > Cell 4 |
| > |
+--------+--------+
Drag bar
<div class="content cols">
<rsz-layout class="row" [directions]="['right']" [rFlex]="true">
<rsz-layout class="cell" [directions]="['bottom']" [rFlex]="true">
<p>Cell Content 1</p>
</rsz-layout>
<rsz-layout class="cell" [directions]="['none']" [rFlex]="false">
<p>Cell Content 2</p>
</rsz-layout>
</rsz-layout>
<rsz-layout class="row" [directions]="['none']" [rFlex]="false">
<rsz-layout class="cell" [directions]="['bottom']" [rFlex]="true">
<p>Cell Content 3</p>
</rsz-layout>
<rsz-layout class="cell" [directions]="['none']" [rFlex]="false">
<p>Cell Content 4</p>
</rsz-layout>
</rsz-layout>
</div>
Attributes | Default | Accepts | Description |
---|---|---|---|
rDirections | ['right'] | ['top', 'right', 'bottom', 'left',] | Determines which sides of the element are resizable. |
rFlex | false | boolean | Set as true if you are using flexbox on a cell. |
This event is emitted at the beginning of a resize with the following info object:
info.width
: The width of the directive at time of resize start. Will be false if resizing verticallyinfo.height
: The height of the directive at time of resize start. Will be false if resizing horizontallyinfo.id
: The id of the directive. Will be false if there is no id set.info.evt
: original mouse event objectCalled repeatedly while the mouse is being moved. By default, only calls once every 100ms to keep CPU usage low.
info.width
: The width of the directive at time of resize end. Will be false if resizing verticallyinfo.height
: The height of the directive at time of resize end. Will be false if resizing horizontallyinfo.id
: The id of the directive. Will be false if there is no id set.info.evt
: original mouse event objectThis event is emitted at the end of a resize with the following object as an argument:
info.width
: The width of the directive at time of resize end. Will be false if resizing verticallyinfo.height
: The height of the directive at time of resize end. Will be false if resizing horizontallyinfo.id
: The id of the directive. Will be false if there is no id set.info.evt
: original mouse event objectMIT
FAQs
A Resizable Split-Pane Layout for Angular6+
The npm package ngx-resizable-ex receives a total of 1 weekly downloads. As such, ngx-resizable-ex popularity was classified as not popular.
We found that ngx-resizable-ex 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
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.