Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
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 451 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.