Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-table-resize

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-table-resize

An AngularJS module for resizing table columns!

  • 1.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
592
decreased by-23.42%
Maintainers
1
Weekly downloads
 
Created
Source

angular-table-resize

An AngularJS module for resizing table columns!

Demo

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 source can be found in the gh-pages branch

Installation

Bower
bower install angular-table-resize
NPM
npm install angular-table-resize

Setup

<link rel="stylesheet" href="/angular-table-resize.min.css">
Import dependencies
<script src="/jquery/dist/jquery.min.js"></script>
<script src="/angular/angular.js"></script>
Import the Angular module
<script src="/angular-table-resize.min.js"></script>

Use

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"
Saving column sizes

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.

Resizing Modes

The resize mode can be set to any of these modes. Choose the one that works best for you.

Resize ModeDescription
BasicResizerOnly the two adjecent cell are resized when dragging a handler. Cell widths are always in percentage
FixedResizerFirst columns is width auto. Subsequent column sizes are never changed after resizing
OverflowResizerTable 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 coming soon.

FAQs

Package last updated on 30 Jan 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