How to use the @bentley/ui-ninezone.ToolSettingsWidgetMode.TitleBar function in @bentley/ui-ninezone

To help you get started, we’ve selected a few @bentley/ui-ninezone 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 / ui / framework / src / ui-framework / zones / Zone.tsx View on Github external
public render(): React.ReactNode {
    const { runtimeProps } = this.props;

    if (!runtimeProps)
      return null;

    const { zoneDef } = runtimeProps;

    let widgetElement: React.ReactNode;
    // istanbul ignore else
    if (runtimeProps.zone.widgets.length === 1) {
      if (zoneDef.isToolSettings && isToolSettingsWidgetManagerProps(runtimeProps.widget) && runtimeProps.widget.mode === ToolSettingsWidgetMode.TitleBar) {
        const widgetDef = zoneDef.getSingleWidgetDef();
        const isClosed = widgetDef ? (widgetDef.state === WidgetState.Closed || widgetDef.state === WidgetState.Hidden) : false;
        return (
github imodeljs / imodeljs / ui / framework / src / ui-framework / widgets / ToolSettingsContent.tsx View on Github external
public render(): React.ReactNode | undefined {
    const className = classnames(
      "uifw-tool-settings-content",
      this.props.mode === ToolSettingsWidgetMode.TitleBar && "uifw-title-bar",
      this.props.mode === ToolSettingsWidgetMode.Tab && "uifw-tab",
    );

    return (
      
          {this.props.children}
          <div>
            
          </div>
          <div></div>