Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonpage committed May 8, 2013
1 parent b419e0b commit 45da8fd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GruntFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = function(grunt) {
},
dist: {
src: [
'lib/ellipsis.js'
'lib/index.js'
],
dest: 'README.md'
}
Expand Down
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,42 @@ $ npm test
```

## API
### Ellipsis();

Initialize a new Ellipsis
instance with the given element.

Options:

- `container` A parent container element
- `reRender` Forces a redraw after ellipsis applied

### Ellipsis#calc();

Measures the element and
finds the overflowing child.



### Ellipsis#set();

Clamps the overflowing child using
the information acquired from #calc().



### Ellipsis#unset();

Unclamps the overflowing child.



### Ellipsis#destroy();

Clears any references





## Credits and collaboration
Expand Down
2 changes: 1 addition & 1 deletion docs/wrapper.hogan
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ $ npm test
```

## API
{{{ellipsis}}}
{{{index}}}

## Credits and collaboration

Expand Down

0 comments on commit 45da8fd

Please sign in to comment.