How to use the @bentley/ui-components.BreadcrumbPath function in @bentley/ui-components

To help you get started, we’ve selected a few @bentley/ui-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / widgets / BreadcrumbDemoWidget.tsx View on Github external
public render() {
    const path = new BreadcrumbPath(demoMutableTreeDataProvider);

    DragDropLayerManager.registerTypeLayer(TreeDragTypes.Parent, ParentDragLayer);
    DragDropLayerManager.registerTypeLayer(TreeDragTypes.Child, ChildDragLayer);

    let objectTypes: Array = [];
    if (treeDropProps.objectTypes) {
      if (typeof treeDropProps.objectTypes !== "function")
        objectTypes = treeDropProps.objectTypes;
      else
        objectTypes = treeDropProps.objectTypes();
    }
    if (this.state.checked)
      objectTypes.push(TableDragTypes.Row);

    const dragProps = treeDragProps;
    const dropProps = {