How to use the @bentley/ui-framework.CoreTools.selectElementCommand function in @bentley/ui-framework

To help you get started, we’ve selected a few @bentley/ui-framework 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 / frontstages / ViewsFrontstage.tsx View on Github external
const contentLayoutDef: ContentLayoutDef = new ContentLayoutDef(contentLayoutProps);

    // create the content props that specifies an iModelConnection and a viewState entry in the application data.
    const contentProps: ContentProps[] = [];
    for (const viewState of this.viewStates) {
      const thisContentProps: ContentProps = {
        classId: IModelViewportControl,
        applicationData: { viewState, iModelConnection: this.iModelConnection },
      };
      contentProps.push(thisContentProps);
    }
    const myContentGroup: ContentGroup = new ContentGroup({ contents: contentProps });
    return (
      } />,
            ]}
          />
        }
        topCenter={
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / LocalFileStage.tsx View on Github external
public get frontstage(): React.ReactElement {
    const contentGroup: ContentGroup = new ContentGroup({
      contents: [
        {
          classId: LocalFileOpenControl,
        },
      ],
    });

    return (
      } />,
            ]}
          />
        }
      />
    );
  }
}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / NestedAnimationStage.tsx View on Github external
public get frontstage(): React.ReactElement {
    const myContentGroup: ContentGroup = new ContentGroup(
      {
        contents: [
          {
            classId: "ScheduleAnimationControl",
          },
        ],
      },
    );

    return (
      } />,
            ]}
          />
        }
      />
    );
  }
}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / Frontstage2.tsx View on Github external
},
          {
            classId: "TestApp.IModelViewport",
            applicationData: { label: "Content 3a", bgColor: "black" },
          },
          {
            classId: HorizontalPropertyGridContentControl,
            applicationData: { label: "Content 4a", bgColor: "black" },
          },
        ],
      },
    );

    return (
      } />,
            ]}
          />
        }
        topCenter={
          ,
            ]}
          />
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / NestedFrontstage1.tsx View on Github external
/>
        }
      />
    );
  }
}

/** Define a ToolWidget with Buttons to display in the TopLeft zone.
 */
class FrontstageToolWidget extends React.Component {
  private _horizontalToolbar =
    
          
          
          
          
        
      }
    />;

  private _verticalToolbar =
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / ScheduleAnimationFrontstage.tsx View on Github external
public get frontstage(): React.ReactElement {

    const myContentGroup: ContentGroup = new ContentGroup(
      {
        contents: [
          {
            classId: "ScheduleAnimationControl",
          },
        ],
      },
    );

    return (
      
    );
  }
}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / Frontstage3.tsx View on Github external
{
            classId: App_IModelViewport.id,
            applicationData: { label: "Content 2a", bgColor: "blue" },
          },
          {
            classId: "TableExampleContent",
            applicationData: { label: "Content 3a", bgColor: "black" },
          },
        ],
      },
    );

    return (
      ,
            ]}
          />
        }
        topCenter={
          ,
            ]}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / AppUi.tsx View on Github external
},
      {
        key: "d",
        labelKey: "SampleApp:buttons.shortcutsSubMenu",
        shortcuts: [
          {
            key: "1",
            item: AppTools.tool1,
          },
          {
            key: "2",
            item: AppTools.tool2,
          },
          {
            key: "s",
            item: CoreTools.selectElementCommand,
          },
        ],
      },
      {
        key: "f",
        item: AppTools.setLengthFormatImperialCommand,
      },
      {
        key: "m",
        labelKey: "SampleApp:buttons.accudrawSubMenu",
        shortcuts: [
          {
            key: "a",
            item: AccuDrawPopupTools.addMenuButton,
          },
          {
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / Frontstage1.tsx View on Github external
if (activeFrontstageDef) {
          const contentLayout = ContentLayoutManager.findLayout("TwoHalvesHorizontal");
          if (contentLayout && activeFrontstageDef.contentGroup) {
            await ContentLayoutManager.setActiveLayout(contentLayout, activeFrontstageDef.contentGroup);
          }
        }
      },
    });
  }

  private _horizontalToolbar =
    
          
          
          
          
          
        
      }
    />;

  private _verticalToolbar =
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / frontstages / IModelIndexFrontstage.tsx View on Github external
public get frontstage(): React.ReactElement {
    const contentGroup: ContentGroup = new ContentGroup({
      contents: [
        {
          classId: IModelIndexControl,
        },
      ],
    });

    return (
      
    );
  }
}