-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Docs: Tree example #19624
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Docs: Tree example #19624
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
18a10ea
add basic collection example
madsrasmussen 6c15168
add card view example
madsrasmussen 6b2e4a7
update example readme
madsrasmussen bf432af
Add workspace view example with collection
madsrasmussen 2679f79
wip tree example
madsrasmussen 123cf5a
Merge branch 'main' into v16/feature/tree-example
madsrasmussen 0ec6424
clean up
madsrasmussen e347931
Update README.md
madsrasmussen e2f68fe
Merge branch 'main' into v16/feature/tree-example
madsrasmussen 2373850
Update README.md
madsrasmussen 0d7062f
Merge branch 'v16/feature/tree-example' of https://github.com/umbraco…
madsrasmussen 72ac4b7
Merge branch 'main' into v16/feature/tree-example
madsrasmussen fd62ee6
Merge branch 'main' into v16/feature/tree-example
madsrasmussen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Tree Example | ||
|
|
||
| This example demonstrates how to register a tree | ||
|
|
||
| The example includes: | ||
|
|
||
| - Tree + Tree Item Registration | ||
| - Tree Repository + Store Registration | ||
| - A Dashboard to show how to render a tree anywhere in the backoffice | ||
| - How to use the tree in the sidebar menu |
27 changes: 27 additions & 0 deletions
27
src/Umbraco.Web.UI.Client/examples/tree/dashboard-with-tree/dashboard-with-tree.element.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import { EXAMPLE_TREE_ALIAS } from '../tree/constants.js'; | ||
| import { html, customElement, LitElement, css } from '@umbraco-cms/backoffice/external/lit'; | ||
| import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api'; | ||
|
|
||
| @customElement('example-dashboard-with-tree') | ||
| export class ExampleDashboardWithTree extends UmbElementMixin(LitElement) { | ||
| override render() { | ||
| return html`<uui-box><umb-tree alias=${EXAMPLE_TREE_ALIAS}></umb-tree></uui-box>`; | ||
| } | ||
|
|
||
| static override styles = [ | ||
| css` | ||
| :host { | ||
| display: block; | ||
| padding: var(--uui-size-layout-1); | ||
| } | ||
| `, | ||
| ]; | ||
| } | ||
|
|
||
| export { ExampleDashboardWithTree as element }; | ||
|
|
||
| declare global { | ||
| interface HTMLElementTagNameMap { | ||
| 'example-dashboard-with-tree': ExampleDashboardWithTree; | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
src/Umbraco.Web.UI.Client/examples/tree/dashboard-with-tree/manifests.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| export const manifests: Array<UmbExtensionManifest> = [ | ||
| { | ||
| type: 'dashboard', | ||
| kind: 'default', | ||
| name: 'Example Dashboard With Tree', | ||
| alias: 'Example.Dashboard.WithTree', | ||
| element: () => import('./dashboard-with-tree.element.js'), | ||
| weight: 3000, | ||
| meta: { | ||
| label: 'Tree Example', | ||
| pathname: 'tree-example', | ||
| }, | ||
| }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| export const EXAMPLE_ENTITY_TYPE = 'example'; | ||
| export const EXAMPLE_ROOT_ENTITY_TYPE = 'example-root'; | ||
|
|
||
| export type ExampleEntityType = typeof EXAMPLE_ENTITY_TYPE; | ||
| export type ExampleRootEntityType = typeof EXAMPLE_ROOT_ENTITY_TYPE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { manifests as dashboardManifests } from './dashboard-with-tree/manifests.js'; | ||
| import { manifests as menuItemManifests } from './menu-item-with-tree/manifests.js'; | ||
| import { manifests as treeManifests } from './tree/manifests.js'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [...dashboardManifests, ...menuItemManifests, ...treeManifests]; |
17 changes: 17 additions & 0 deletions
17
src/Umbraco.Web.UI.Client/examples/tree/menu-item-with-tree/manifests.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import { EXAMPLE_TREE_ALIAS } from '../tree/constants.js'; | ||
| import { UMB_CONTENT_MENU_ALIAS } from '@umbraco-cms/backoffice/document'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [ | ||
| { | ||
| type: 'menuItem', | ||
| kind: 'tree', | ||
| alias: 'Example.MenuItem.Tree', | ||
| name: 'Example Tree Menu Item', | ||
| weight: 1000, | ||
| meta: { | ||
| label: 'Example Tree', | ||
| menus: [UMB_CONTENT_MENU_ALIAS], | ||
| treeAlias: EXAMPLE_TREE_ALIAS, | ||
| }, | ||
| }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const EXAMPLE_TREE_ALIAS = 'Example.Tree'; |
2 changes: 2 additions & 0 deletions
2
src/Umbraco.Web.UI.Client/examples/tree/tree/data/constants.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| export * from './repository/constants.js'; | ||
| export * from './store/constants.js'; |
1 change: 1 addition & 0 deletions
1
src/Umbraco.Web.UI.Client/examples/tree/tree/data/local-data-source/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './tree.local.data-source.js'; |
108 changes: 108 additions & 0 deletions
108
...Umbraco.Web.UI.Client/examples/tree/tree/data/local-data-source/tree.local.data-source.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| import type { ExampleTreeItemModel } from '../../types.js'; | ||
| import { EXAMPLE_ENTITY_TYPE, EXAMPLE_ROOT_ENTITY_TYPE } from '../../../entity.js'; | ||
| import type { | ||
| UmbTreeAncestorsOfRequestArgs, | ||
| UmbTreeChildrenOfRequestArgs, | ||
| UmbTreeDataSource, | ||
| UmbTreeRootItemsRequestArgs, | ||
| } from '@umbraco-cms/backoffice/tree'; | ||
| import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api'; | ||
|
|
||
| const EXAMPLE_TREE_DATA: Array<ExampleTreeItemModel> = [ | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: false, | ||
| isFolder: false, | ||
| name: 'Item 1', | ||
| parent: { unique: null, entityType: EXAMPLE_ROOT_ENTITY_TYPE }, | ||
| unique: 'ab7b6e03-5f4d-4a6b-9f4c-21292d462e08', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: true, | ||
| isFolder: false, | ||
| name: 'Item 2', | ||
| parent: { unique: null, entityType: EXAMPLE_ROOT_ENTITY_TYPE }, | ||
| unique: '74a5b2d9-3564-45b8-a3ee-98fc7ec0c1fb', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: false, | ||
| isFolder: false, | ||
| name: 'Item 3', | ||
| parent: { unique: null, entityType: EXAMPLE_ROOT_ENTITY_TYPE }, | ||
| unique: '1b8ed2ac-b4bb-4384-972e-2cf18f40586a', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: false, | ||
| isFolder: false, | ||
| name: 'Item 2.1', | ||
| parent: { unique: '74a5b2d9-3564-45b8-a3ee-98fc7ec0c1fb', entityType: EXAMPLE_ENTITY_TYPE }, | ||
| unique: '62dbd672-b198-4fc8-8b42-5d21dfbd3788', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: true, | ||
| isFolder: false, | ||
| name: 'Item 2.2', | ||
| parent: { unique: '74a5b2d9-3564-45b8-a3ee-98fc7ec0c1fb', entityType: EXAMPLE_ENTITY_TYPE }, | ||
| unique: 'deaa3f8c-e40b-4eb7-8268-34014504152e', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| { | ||
| entityType: EXAMPLE_ENTITY_TYPE, | ||
| hasChildren: false, | ||
| isFolder: false, | ||
| name: 'Item 2.2.1', | ||
| parent: { unique: 'deaa3f8c-e40b-4eb7-8268-34014504152e', entityType: EXAMPLE_ENTITY_TYPE }, | ||
| unique: 'd4cf5fd2-1f84-4f3b-b63b-5f29a38e72d1', | ||
| icon: 'icon-newspaper', | ||
| }, | ||
| ]; | ||
|
|
||
| export class ExampleTreeLocalDataSource extends UmbControllerBase implements UmbTreeDataSource<ExampleTreeItemModel> { | ||
| async getRootItems(args: UmbTreeRootItemsRequestArgs) { | ||
| // TODO: handle skip, take, foldersOnly. | ||
| console.log(args); | ||
| const rootItems: Array<ExampleTreeItemModel> = EXAMPLE_TREE_DATA.filter((item) => item.parent.unique === null); | ||
| return { data: { items: rootItems, total: rootItems.length } }; | ||
| } | ||
|
|
||
| async getChildrenOf(args: UmbTreeChildrenOfRequestArgs) { | ||
| // TODO: handle skip, take, foldersOnly. | ||
| const children = EXAMPLE_TREE_DATA.filter( | ||
| (item) => item.parent.unique === args.parent.unique && item.parent.entityType === args.parent.entityType, | ||
| ); | ||
|
|
||
| return { data: { items: children, total: children.length } }; | ||
| } | ||
|
|
||
| async getAncestorsOf(args: UmbTreeAncestorsOfRequestArgs) { | ||
| const ancestors = findAncestors(args.treeItem.unique, args.treeItem.entityType); | ||
| return { data: ancestors }; | ||
| } | ||
| } | ||
|
|
||
| // Helper function to find ancestors recursively | ||
| const findAncestors = (unique: string, entityType: string): Array<ExampleTreeItemModel> => { | ||
| const item = EXAMPLE_TREE_DATA.find((i) => i.unique === unique && i.entityType === entityType); | ||
|
|
||
| if (!item || !item.parent || item.parent.unique === null) { | ||
|
Check warning on line 95 in src/Umbraco.Web.UI.Client/examples/tree/tree/data/local-data-source/tree.local.data-source.ts
|
||
| return []; | ||
| } | ||
|
|
||
| const parent = EXAMPLE_TREE_DATA.find( | ||
| (i) => i.unique === item.parent.unique && i.entityType === item.parent.entityType, | ||
| ); | ||
|
|
||
| if (!parent) { | ||
| return []; | ||
| } | ||
|
|
||
| return [parent, ...findAncestors(parent.unique, parent.entityType)]; | ||
| }; | ||
4 changes: 4 additions & 0 deletions
4
src/Umbraco.Web.UI.Client/examples/tree/tree/data/manifests.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import { manifests as repositoryManifests } from './repository/manifests.js'; | ||
| import { manifests as storeManifests } from './store/manifests.js'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [...repositoryManifests, ...storeManifests]; |
1 change: 1 addition & 0 deletions
1
src/Umbraco.Web.UI.Client/examples/tree/tree/data/repository/constants.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const EXAMPLE_TREE_REPOSITORY_ALIAS = 'Example.Repository.Tree'; |
10 changes: 10 additions & 0 deletions
10
src/Umbraco.Web.UI.Client/examples/tree/tree/data/repository/manifests.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { EXAMPLE_TREE_REPOSITORY_ALIAS } from './constants.js'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [ | ||
| { | ||
| type: 'repository', | ||
| alias: EXAMPLE_TREE_REPOSITORY_ALIAS, | ||
| name: 'Example Tree Repository', | ||
| api: () => import('./tree.repository.js'), | ||
| }, | ||
| ]; |
30 changes: 30 additions & 0 deletions
30
src/Umbraco.Web.UI.Client/examples/tree/tree/data/repository/tree.repository.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import type { ExampleTreeItemModel, ExampleTreeRootModel } from '../../types.js'; | ||
| import { EXAMPLE_ROOT_ENTITY_TYPE } from '../../../entity.js'; | ||
| import { EXAMPLE_TREE_STORE_CONTEXT } from '../store/index.js'; | ||
| import { ExampleTreeLocalDataSource } from '../local-data-source/index.js'; | ||
| import { UmbTreeRepositoryBase, type UmbTreeRepository } from '@umbraco-cms/backoffice/tree'; | ||
| import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; | ||
| import type { UmbApi } from '@umbraco-cms/backoffice/extension-api'; | ||
|
|
||
| export class ExampleTreeRepository | ||
| extends UmbTreeRepositoryBase<ExampleTreeItemModel, ExampleTreeRootModel> | ||
| implements UmbTreeRepository, UmbApi | ||
| { | ||
| constructor(host: UmbControllerHost) { | ||
| super(host, ExampleTreeLocalDataSource, EXAMPLE_TREE_STORE_CONTEXT); | ||
| } | ||
|
|
||
| async requestTreeRoot() { | ||
| const root: ExampleTreeRootModel = { | ||
| unique: null, | ||
| entityType: EXAMPLE_ROOT_ENTITY_TYPE, | ||
| name: 'Example Tree', | ||
| hasChildren: true, | ||
| isFolder: true, | ||
| }; | ||
|
|
||
| return { data: root }; | ||
| } | ||
| } | ||
|
|
||
| export { ExampleTreeRepository as api }; |
1 change: 1 addition & 0 deletions
1
src/Umbraco.Web.UI.Client/examples/tree/tree/data/store/constants.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export const EXAMPLE_TREE_STORE_ALIAS = 'Example.Store.Tree'; |
1 change: 1 addition & 0 deletions
1
src/Umbraco.Web.UI.Client/examples/tree/tree/data/store/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export * from './tree.store.context-token.js'; |
10 changes: 10 additions & 0 deletions
10
src/Umbraco.Web.UI.Client/examples/tree/tree/data/store/manifests.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import { EXAMPLE_TREE_STORE_ALIAS } from './constants.js'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [ | ||
| { | ||
| type: 'treeStore', | ||
| alias: EXAMPLE_TREE_STORE_ALIAS, | ||
| name: 'Example Tree Store', | ||
| api: () => import('./tree.store.js'), | ||
| }, | ||
| ]; |
4 changes: 4 additions & 0 deletions
4
src/Umbraco.Web.UI.Client/examples/tree/tree/data/store/tree.store.context-token.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| import type { ExampleTreeStore } from './tree.store.js'; | ||
| import { UmbContextToken } from '@umbraco-cms/backoffice/context-api'; | ||
|
|
||
| export const EXAMPLE_TREE_STORE_CONTEXT = new UmbContextToken<ExampleTreeStore>('ExampleTreeStore'); |
11 changes: 11 additions & 0 deletions
11
src/Umbraco.Web.UI.Client/examples/tree/tree/data/store/tree.store.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| import { EXAMPLE_TREE_STORE_CONTEXT } from './tree.store.context-token.js'; | ||
| import { UmbUniqueTreeStore } from '@umbraco-cms/backoffice/tree'; | ||
| import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; | ||
|
|
||
| export class ExampleTreeStore extends UmbUniqueTreeStore { | ||
| constructor(host: UmbControllerHost) { | ||
| super(host, EXAMPLE_TREE_STORE_CONTEXT.toString()); | ||
| } | ||
| } | ||
|
|
||
| export { ExampleTreeStore as api }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import { EXAMPLE_ENTITY_TYPE, EXAMPLE_ROOT_ENTITY_TYPE } from '../entity.js'; | ||
| import { EXAMPLE_TREE_ALIAS } from './constants.js'; | ||
| import { EXAMPLE_TREE_REPOSITORY_ALIAS } from './data/constants.js'; | ||
| import { manifests as dataManifests } from './data/manifests.js'; | ||
|
|
||
| export const manifests: Array<UmbExtensionManifest> = [ | ||
| { | ||
| type: 'tree', | ||
| kind: 'default', | ||
| alias: EXAMPLE_TREE_ALIAS, | ||
| name: 'Example Tree', | ||
| meta: { | ||
| repositoryAlias: EXAMPLE_TREE_REPOSITORY_ALIAS, | ||
| }, | ||
| }, | ||
| { | ||
| type: 'treeItem', | ||
| kind: 'default', | ||
| alias: 'Example.TreeItem', | ||
| name: 'Example Tree Item', | ||
| forEntityTypes: [EXAMPLE_ROOT_ENTITY_TYPE, EXAMPLE_ENTITY_TYPE], | ||
| }, | ||
| ...dataManifests, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import type { ExampleEntityType, ExampleRootEntityType } from '../entity.js'; | ||
| import type { UmbTreeItemModel, UmbTreeRootModel } from '@umbraco-cms/backoffice/tree'; | ||
|
|
||
| export interface ExampleTreeItemModel extends UmbTreeItemModel { | ||
| entityType: ExampleEntityType; | ||
| } | ||
|
|
||
| export interface ExampleTreeRootModel extends UmbTreeRootModel { | ||
| entityType: ExampleRootEntityType; | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.