How to use the @bentley/ui-core.Position.Bottom function in @bentley/ui-core

To help you get started, we’ve selected a few @bentley/ui-core 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 / imodelopen / ProjectDropdown.tsx View on Github external
private renderDropdown() {
    const liStyle: React.CSSProperties = {
      height: this._itemHeight + "em",
    };
    return (
      
        <div>
          {this.renderProjects()}
          <div>
          <div style="{liStyle}">
            <span>
            More
          </span></div>
        </div>
      
    );
  }
</div>
github imodeljs / imodeljs / ui / framework / src / ui-framework / navigationaids / StandardRotationNavigationAid.tsx View on Github external
className={"expandable"}
        &gt;
          
            }
            onClick={this._toggleIsExpanded}
          &gt;
          
        
        
          {this.getExpandedContent()}
        
      
    );
  }
github imodeljs / imodeljs / ui / components / src / ui-components / lineweight / WeightPickerButton.tsx View on Github external
data-testid="components-weightpicker-button"
                className={buttonClassNames}
                weight={this.props.activeWeight}
                colorDef={this.props.colorDef}
                readonly={this.props.readonly}
                disabled={this.props.disabled}
                hideLabel={this.props.hideLabel}
                aria-haspopup="listbox"
                aria-expanded={this.state.showPopup}
                onClick={this._togglePopup} /&gt;
            
            
              {this.renderPopup(this.props.dropDownTitle)}
            
          
        }
github imodeljs / imodeljs / ui / ninezone / demo / src / pages / Tools.tsx View on Github external
this.setState((prevState) => {
      let direction = prevState.direction;
      switch (direction) {
        case PopupDirection.Left: {
          direction = PopupDirection.Top;
          break;
        }
        case PopupDirection.Top: {
          direction = PopupDirection.Right;
          break;
        }
        case PopupDirection.Right: {
          direction = PopupDirection.Bottom;
          break;
        }
        case PopupDirection.Bottom: {
          direction = PopupDirection.Left;
          break;
        }
      }
      return {
        ...prevState,
        direction: prevState.isPanelVisible ? prevState.direction : direction,
        isPanelVisible: !prevState.isPanelVisible,
      };
    });
  }
github imodeljs / imodeljs / plugins / iot-demo / src / ui / IotSettingsDialog.tsx View on Github external
public render() {
    const { values, value } = this.props;
    const { showPopup } = this.state;
    const buttonClassName = classnames("iot-color-picker-button", this.state.showPopup &amp;&amp; "opened");

    return (
      &lt;&gt;
        <button disabled="{true}" style="{{">
          <span>{value}</span>
          <span>
        </span></button>
        
          {this.renderPopup()}
        
      
    );
  }
}
github imodeljs / imodeljs / ui / ninezone / src / ui-ninezone / widget / tool-settings / Popup.tsx View on Github external
public render() {
    const { className, ...props } = this.props;
    return (
      
        <div>
          {this.props.children}
        </div>
      
    );
  }
}
github imodeljs / imodeljs / ui / ninezone / demo / src / pages / Tools.tsx View on Github external
this.setState((prevState) => {
      let direction = prevState.direction;
      switch (direction) {
        case PopupDirection.Left: {
          direction = PopupDirection.Top;
          break;
        }
        case PopupDirection.Top: {
          direction = PopupDirection.Right;
          break;
        }
        case PopupDirection.Right: {
          direction = PopupDirection.Bottom;
          break;
        }
        case PopupDirection.Bottom: {
          direction = PopupDirection.Left;
          break;
        }
      }
      return {
        ...prevState,
        direction: prevState.isPanelVisible ? prevState.direction : direction,
        isPanelVisible: !prevState.isPanelVisible,
      };
    });
  }
github imodeljs / imodeljs / ui / framework / src / openimodel / ProjectDropdown.tsx View on Github external
private renderDropdown() {
    const liStyle: CSSProperties = {
      height: this._itemHeight + "em",
    };
    return (
      
        <div>
          {this.renderProjects()}
          <div>
          <div style="{liStyle}">
            <span>
            More
          </span></div>
        </div>
      
    );
  }
</div>