Package Exports
- angular-float-thead
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-float-thead) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
angular-floatThead
angular-floatThead is a very simple wrapper around the awesome floatThead library by @mkoryak
Installation
via bower:
$ bower install angular-float-theadUsage
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-theadon your table element and optionally pass through a floatThead object as a parameter, eg:<table float-thead="floatTheadOptions">Add floatTheadOptions to
$scopeon your controller
$scope.floatTheadOptions = {
scrollingTop: 60,
useAbsolutePositioning: false
};- If you want the directive to reinitialize when your tables data changes then specify an
ng-modelon 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" ... >