https://github.com/jackfallows/knockout-remainingheight
Knockout binding for setting an element's height to be the remaining available in its parent, based on the parent's current height and the sum of the heights of the element's siblings.
https://github.com/jackfallows/knockout-remainingheight
Last synced: over 1 year ago
JSON representation
Knockout binding for setting an element's height to be the remaining available in its parent, based on the parent's current height and the sum of the heights of the element's siblings.
- Host: GitHub
- URL: https://github.com/jackfallows/knockout-remainingheight
- Owner: JackFallows
- License: mit
- Created: 2018-03-19T20:12:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T13:06:03.000Z (almost 8 years ago)
- Last Synced: 2025-03-10T03:06:56.960Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# knockout-remainingheight
## Description
Knockout binding for setting an element's height to be the remaining available in its parent, based on the parent's current height and the sum of the heights of the element's siblings.
## Installing
To install, use Bower:
`bower install --save knockout-remainingheight`
## Using
### Include in your page
``
### Use the binding
To use, the element's parent must have a defined height (so that it doesn't simply end up the height of its children). Then:
```
...
```
You can also bind to an observable which will trigger recalculations of the element height on changes (useful if a user action causes new sibling elements to appear, or existing ones to disappear):
```
...
```