@angular/material/tree#MatTreeNestedDataSource TypeScript Examples

The following examples show how to use @angular/material/tree#MatTreeNestedDataSource. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: file-system-tree-explorer.component.ts    From qbit-matUI with MIT License 6 votes vote down vote up
/** Refresh all filesystem data. This could potentially be an
   *  expensive operation.
   */
  private async _updateData(): Promise<void> {
    this.dataSource = new MatTreeNestedDataSource<SerializedNode>();
    this.dataSource.data = this.directories;

    /** Should render the root node, which basically shows the top-level torrents */
    this.nodes_to_render.add('');
  }
Example #2
Source File: documentation.component.ts    From DocumentationWebPage with MIT License 5 votes vote down vote up
dataSource = new MatTreeNestedDataSource<FoodNode>();
Example #3
Source File: file-system-tree-explorer.component.ts    From qbit-matUI with MIT License 5 votes vote down vote up
public dataSource = new MatTreeNestedDataSource<SerializedNode>();
Example #4
Source File: tree.component.ts    From oss-github-benchmark with GNU General Public License v3.0 5 votes vote down vote up
dataSource = new MatTreeNestedDataSource<GithubNode>();
Example #5
Source File: nested-tree.component.ts    From matx-angular with MIT License 5 votes vote down vote up
dataSource = new MatTreeNestedDataSource<FoodNode>();