šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

angular-float-thead

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-float-thead

angular-floatThead is a very simple wrapper around the awesome floatThead library by @mkoryak

0.1.2
latest
Source
npm
Version published
Weekly downloads
2.4K
-10.95%
Maintainers
1
Weekly downloads
Ā 
Created
Source

angular-floatThead

angular-floatThead is a very simple wrapper around the awesome floatThead library by @mkoryak

Installation

via bower:

$ bower install angular-float-thead

Usage

  • This is just a wrapper over the original jQuery floatThead library, so first make sure you have the main library installed as per https://github.com/mkoryak/floatThead

  • Include angular-float-thead as a dependency for your app after running bower install

angular.module('myApp', ['floatThead'])
  • Specify float-thead on your table element and optionally pass through a floatThead object as a parameter, eg: <table float-thead="floatTheadOptions">

  • Add floatTheadOptions to $scope on your controller

$scope.floatTheadOptions = {
    scrollingTop: 60,
    useAbsolutePositioning: false
  };
  • If you want the directive to reinitialize when your tables data changes then specify an ng-model on your table and it will watch the collection/object and call 'reflow' when the data changes.

for eg:

<table float-thead="floatTheadOptions" ng-model="collectionOrObjectToWatch">

Configuration

You can pass through additional attributes to the directive to modify the behaviour:

float-thead-enabled

Pass through a boolean value or scope object to enable/disable the floatThead library

You can use this to implement a toggle button or to delay the initialization of the library

<table float-thead-enabled="test.enabled" ... >

Keywords

angular

FAQs

Package last updated on 13 Jul 2016

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