{"id":15105152,"url":"https://github.com/emberjs/group-helper","last_synced_at":"2025-09-27T03:30:29.055Z","repository":{"id":5465916,"uuid":"6661451","full_name":"emberjs/group-helper","owner":"emberjs","description":"An experimental helper to change the granularity of bindings.","archived":true,"fork":false,"pushed_at":"2015-06-20T12:33:24.000Z","size":412,"stargazers_count":86,"open_issues_count":6,"forks_count":12,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-29T14:51:01.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/emberjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-12T22:08:12.000Z","updated_at":"2024-04-17T21:21:37.000Z","dependencies_parsed_at":"2022-07-06T19:30:14.678Z","dependency_job_id":null,"html_url":"https://github.com/emberjs/group-helper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fgroup-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fgroup-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fgroup-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emberjs%2Fgroup-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emberjs","download_url":"https://codeload.github.com/emberjs/group-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234267244,"owners_count":18805378,"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-09-25T20:21:22.983Z","updated_at":"2025-09-27T03:30:23.528Z","avatar_url":"https://github.com/emberjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ember.js group helper\n\nThis is an experimental plugin to allow an application developer to change the granularity of bindings in a template. This can lead to significant performance improvements when outputting many bound properties, inside of an #each for example.\n\nThe general rule is that the `group` helper causes the nearest view to be rerendered when a property inside it changes. It also prevents the common Handlebars helpers (#if, #unless, #each) from creating virtual views.\n\nCurrently requires Ember.js master.\n\n## Usage\n\n```handlebars\n  {{#group}}\n    {{firstName}} {{lastName}}\n  {{/group}}\n```\n\nChanges to `firstName` or `lastName` will rerender the whole `group` block.\n\n```handlebars\n  {{#group}}\n    {{#each people}}\n      {{firstName}} {{lastName}}\n    {{/each}}\n  {{/group}}\n```\n\nThe whole `group` block will be rerendered upon addition/removal of elements in the `people` array or any properties output within the `each` block.\n\n```handlebars\n  {{#group}}\n    {{#each people groupedRows=true}}\n      {{firstName}} {{lastName}}\n    {{/each}}\n  {{/group}}\n```\n\nSpecifying the `groupedRows` option will cause the `#each` to behave like a normal bound `#each`. There will be a virtual view for the `each` itself and for every row. Addition/removal of elements in the array will insert/remove rows in the DOM without causing the `group` to rerender. Since each row has a virtual view, changing a property output inside a row will only rerender that row.\n\n```handlebars\n  {{#group}}\n    {{#each people itemViewClass=\"App.RowView\"}}\n      {{firstName}} {{lastName}}\n    {{/each}}\n  {{/group}}\n```\n\nYou can alternatively specify an `itemViewClass` to get the behavior as detailed above, but instead of rows being virtual views, they'll be instances of your specified class.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fgroup-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femberjs%2Fgroup-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femberjs%2Fgroup-helper/lists"}