alalonde / angular-scrollable-table

A fixed header table directive for AngularJS
MIT License
68 stars 48 forks source link

Could you add the Ability to set the Height for the Container with Attribute #32

Closed squadwuschel closed 9 years ago

squadwuschel commented 9 years ago

Hi,

is it possibble to provide the containerheight with an Attribute like:

  template: '<div class="scrollableContainer" ng-style="{\'height\': containerHeight }">' +
                '<div class="headerSpacer"></div>' +
                '<div class="scrollArea" ng-transclude></div>' +
              '</div>'

and Usage:

   <div scrollable-table watch="ctrl.resultModel.Entries" container-height='"600px"'>

Or perhaps to get the Height from the sourrounded Container height?

that would be nice and is there a Version avaible which has no sort implementation just the fixed header implementation?

thx SquadWuschel

(VERY Great Directive!!)

alalonde commented 9 years ago

Hello,

You can set the height via CSS as a percent or fixed amount. Also, if you don't want the sort functionality, simply omit the sortable-header attribute from each th element.