{"id":23149949,"url":"https://github.com/jackfallows/knockout-remainingheight","last_synced_at":"2025-04-04T14:42:00.170Z","repository":{"id":58234790,"uuid":"125914564","full_name":"JackFallows/knockout-remainingheight","owner":"JackFallows","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.","archived":false,"fork":false,"pushed_at":"2018-09-09T13:06:03.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T03:06:56.960Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JackFallows.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-19T20:12:43.000Z","updated_at":"2018-09-09T13:03:58.000Z","dependencies_parsed_at":"2022-08-31T09:21:09.457Z","dependency_job_id":null,"html_url":"https://github.com/JackFallows/knockout-remainingheight","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackFallows%2Fknockout-remainingheight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackFallows%2Fknockout-remainingheight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackFallows%2Fknockout-remainingheight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JackFallows%2Fknockout-remainingheight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JackFallows","download_url":"https://codeload.github.com/JackFallows/knockout-remainingheight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247198411,"owners_count":20900078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T18:15:39.617Z","updated_at":"2025-04-04T14:42:00.139Z","avatar_url":"https://github.com/JackFallows.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# knockout-remainingheight\n## Description\nKnockout 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.\n\n## Installing\nTo install, use Bower:\n\n`bower install --save knockout-remainingheight`\n\n## Using\n### Include in your page\n`\u003cscript type=\"text/javascript\" src=\"~/bower_components/knockout-remainingheight/remainingHeight.js\"\u003e\u003c/script\u003e`\n\n### Use the binding\nTo use, the element's parent must have a defined height (so that it doesn't simply end up the height of its children). Then:\n\n```\n\u003cdiv data-bind=\"remainingHeight: true\"\u003e\n...\n\u003c/div\u003e\n```\n\nYou 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):\n\n```\n\u003cdiv data-bind=\"remainingHeight: myObservable\"\u003e\n...\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfallows%2Fknockout-remainingheight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackfallows%2Fknockout-remainingheight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfallows%2Fknockout-remainingheight/lists"}