bitovi / bitovi/canui

can.ui.TableScroll API

Open
#11 0 comments 0 reactions 1 assignee Claimed by @daffl View on GitHub
Dominant language
JavaScript
Stars
28
Forks
23
PR merge metrics
No merged PRs in 30d

Description

## Purpose
- make a table body scroll while keeping a table layout as easily as possible
## Options
- `fill` - Fill out the parent Grid style
- `spacer` - The class of the spacing column
- `wrapper` - The HTML to wrap everything in
## Events

Might listen to a `changed` event to update it's size.
## Methods
- append - updates header / footer dimensions (could this just be done w/ resize?) It can not because sometimes, if there was no content, it needs to add the spacer rows. It might be possible to detect this on resize.
- changed - if you update the columns. We should change the name of this.
- element - the element of the table
- empty - empty the contents
## Theming
## Examples
### A Twitter Bootstrap styled Grid:

``` html













steal('canui/table_scroll', 'canui/style')
.then('canui/table_scroll/table_scroll.less', function () {
new can.ui.TableScroll('.table');
});

```
## Notes

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.