
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
angular-table-resize
Advanced tools
An AngularJS module for resizing table columns!
You can try out a demo by clicking here. You can also use the demo as an example for implementing the module on your own page. The soruce can be found in the gh-pages branch
bower install angular-table-resize
npm install angular-table-resize
<link rel="stylesheet" href="/angular-table-resize.min.css">
<script src="/jquery/dist/jquery.min.js"></script>
<script src="/angular/angular.js"></script>
<script src="/angular-table-resize.min.js"></script>
Make sure your app imports the module
angular.module('myApplication', ['ngTableResize']);
On a HTML table tag put the resizeable directive
<table resizeable mode="resizeMode" id="myTable">
...
</table>
The attribute mode references a variable on the controller, specifying the current resizing mode. In the example above this variable could be
$scope.resizeMode = "BasicResizer"
The module automatically saves the current column width to localStorage. This however requires that you supply your <table> with an id and all of your table headers <th> with and id as well.
The resize mode kan be set to any of theese modes. Chose the one that works best for you.
Resize Mode | Description |
---|---|
BasicResizer | Only the two adjecent cell are resized when dragging a handler. Cell widths are always in percentage |
FixedResizer | First columns is width auto. Subsequent column sizes are never changed after resizing |
OverflowResizer | Table may expand out of its container, adding scrollbars. Columns are always the same size after resizing |
N.B. You can implement your own resizer model to use with the module. Instructions comming soon.
FAQs
An AngularJS module for resizing table columns!
The npm package angular-table-resize receives a total of 515 weekly downloads. As such, angular-table-resize popularity was classified as not popular.
We found that angular-table-resize 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.