{"id":21192192,"url":"https://github.com/mu-semtech/ember-async-expanding-tree","last_synced_at":"2026-05-19T01:36:12.656Z","repository":{"id":151390115,"uuid":"65746735","full_name":"mu-semtech/ember-async-expanding-tree","owner":"mu-semtech","description":"Ember addon that can be used to display trees of objects. Compatible with the mu-semtech architecture","archived":false,"fork":false,"pushed_at":"2017-01-14T09:53:49.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-21T13:43:58.589Z","etag":null,"topics":["ember-addon","emberjs","mu-frontend","musemtech","tree-structure"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/mu-semtech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-15T16:20:13.000Z","updated_at":"2017-04-08T20:32:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"825b31e3-e064-4743-b2f3-baaf3965b6f2","html_url":"https://github.com/mu-semtech/ember-async-expanding-tree","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/mu-semtech%2Fember-async-expanding-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-semtech%2Fember-async-expanding-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-semtech%2Fember-async-expanding-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mu-semtech%2Fember-async-expanding-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mu-semtech","download_url":"https://codeload.github.com/mu-semtech/ember-async-expanding-tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243646667,"owners_count":20324586,"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":["ember-addon","emberjs","mu-frontend","musemtech","tree-structure"],"created_at":"2024-11-20T19:07:54.703Z","updated_at":"2026-05-19T01:36:12.559Z","avatar_url":"https://github.com/mu-semtech.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-async-expanding-tree\nThis addon provides a async-expanding-tree component for ember. It's a configurable, recursive component to display a expandable tree. \nChild nodes are fetched asynchronously. \n\n## Installation\n`ember install ember-async-expanding-tree`\n\n## Usage\ninclude the component in your template, you need to provide at least a model\n\n`{{async-expanding-tree model=topNode}}`\n\nspecify your own config to customize the functionality of the tree:\n\n`{{async-expanding-tree model=topNode config=customConfig}}`\n\n```\n  config:\n    # property path to the property that should be used as label\n    # e.g. model.label.en would be label.en\n    labelPropertyPath: 'label'\n    # function that is called with the selected model when the label of the model is clicked\n    onActivate: (model) -\u003e\n    # function to retrieve children of the parent object\n    # this function should return a Promise that resolves with the children of the given model \n    # as Ember Models.\n    getChildren: (model) -\u003e\n      model.reload()\n    # list of concept ids that are expanded\n    # will auto expand a node in the tree if it's id is cont\n    # ained in this array\n    expandedConcepts: []\n    # max amount (n) of children to be shown before a load more button is presented\n    # load more button shows an extra n children\n    showMaxChildren: 50\n    # show nodes without children\n    includeLeafs: true\n    # component to be rendered before the tree node\n    # model wil be passed to the component\n    beforeComponent: null\n    # component to be rendered after the tree node\n    # model wil be passed to the component\n    afterComponent: null\n```\n\nif necessary, the component can fetch the children of the model on init\n`{{async-expanding-tree model=topNode config=config fetchChildrenOnInit=true}}`\n\nyou can also specify tooltips for the node, the expander button, the label or the load more button.\nto do this, add one or more of these functions to the config \n```\nconfig:\n  getTooltipNode: (level) -\u003e\n      if level is 0 then 'first level'\n      else then 'other levels'\n  getTooltipExpander: (level) -\u003e\n      if level is 0 then 'first level'\n      else then 'other levels'\n  getTooltipLabel: (level) -\u003e\n      if level is 0 then 'first level'\n      else then 'other levels'\n  getTooltipLoadMore: (level) -\u003e\n    if level is 0 then 'first level'\n    else then 'other levels'\n```\n\nyou can also specify whether you want the children to display tooltips or whether you want the default values to be used\n```\nconfig:\n  showChildrenTooltips: false\n  showDefaultTooltips: false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu-semtech%2Fember-async-expanding-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmu-semtech%2Fember-async-expanding-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmu-semtech%2Fember-async-expanding-tree/lists"}