How to use the @bentley/ui-core.SpinnerSize.Large 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 / plugins / geo-photo / src / ui / GPDialog.tsx View on Github external
private renderGathering() {
    // use a LoadSpinner();
    return (
      <div>
        <div>{this._i18n.translate("geoPhoto:LoadDialog.Finding")}</div>
        <div>
          
        </div>
        <div>{this._i18n.translate("geoPhoto:LoadDialog.FolderName", { folderName: this.state.folderName })}</div>
        <div>{this._i18n.translate("geoPhoto:LoadDialog.FolderCount", { count: this.state.folderCount })}</div>
        <div>{this._i18n.translate("geoPhoto:LoadDialog.FileCount", { count: this.state.fileCount })}</div>
      </div>
    );
  }
github imodeljs / imodeljs / ui / components / src / ui-components / tree / component / Tree.tsx View on Github external
public render() {
    if (!this.state.modelReady) {
      return (
        <div>
          
        </div>
      );
    }

    const nodes = this.state.model.visible();
    if (nodes.length === 0) {
      return (
        <p>
          {this.props.nodeHighlightingProps ?
            UiComponents.translate("tree.noResultsForFilter", { searchText: this.props.nodeHighlightingProps.searchText }) :
            UiComponents.translate("general.noData")}
        </p>
      );
    }

    // This is a hack (since it doesn't have a proper public method) to force Virtualized List to clear cell cache.
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / imodelopen / IModelCard.tsx View on Github external
public renderThumbnail() {
    if (this.state.waitingForThumbnail) {
      return (
        <div>
          
        </div>
      );
    } else if (this.props.iModel.thumbnail) {
      return (
        <div>
          <img src="{this.props.iModel.thumbnail}" id="base64image">
          <span>Open</span>
        </div>
      );
    } else {
      return (
        <div>
          <span>
          <span>Open</span>
        </span></div>
      );
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / imodelopen / ProjectDialog.tsx View on Github external
{(this.state.projects &amp;&amp; this.state.projects.length &gt; 0) &amp;&amp; this.state.projects.map((project: ProjectInfo) =&gt; (this.renderProject(project)))}
                <table>
                <thead>
                  <tr>
                    <th>Project Number</th>
                    <th>Project Name</th>
                    <th>Asset Type</th>
                    <th>Location</th>
                  </tr>
                </thead>
                <tbody></tbody>
              </table>
              {this.state.isLoading &amp;&amp;
                <div>
                  
                </div>
              }
              {(!this.state.isLoading &amp;&amp; (!this.state.projects || this.state.projects.length === 0)) &amp;&amp; <div>{this.getNoProjectsPrompt()}</div>}
            
          
        
      
    );
  }
}
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / imodelopen / IModelViewPicker.tsx View on Github external
private renderViews() {
    if (this.state.waitingForViews) {
      return (
        <div>
          
        </div>
      );
    } else if (this.state.views &amp;&amp; this.state.views.length &gt; 0) {
      return (
        <div>
          {this.state.views.map((view: ViewDefinitionProps, i: number) =&gt; (
            
          ))}
        </div>
      );
    } else {
      return (
        <div>
          There are no views defined.
        </div>
      );
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / appui / imodelopen / BlockingPrompt.tsx View on Github external
public render() {
    return (
      <div>
        <div>
          
          <span>{this.props.prompt}</span>
        </div>
      </div>
    );
  }
}
github imodeljs / imodeljs / ui / components / src / ui-components / propertygrid / component / PropertyGrid.tsx View on Github external
const currTime = new Date();
  const diff = (currTime.getTime() - loadStart.getTime());

  const update = useForceUpdate();
  React.useEffect(() =&gt; {
    if (diff &gt;= delay)
      return;
    const timer = setTimeout(update, diff);
    return () =&gt; clearTimeout(timer);
  });

  if (diff &lt; delay)
    return null;

  return ();
};
const useForceUpdate = () =&gt; {
github imodeljs / imodeljs / ui / components / src / ui-components / tree / controlled / component / ControlledTree.tsx View on Github external
const Loader: React.FC = (props) =&gt; {
  if (props.loading) {
    return props.spinnerRenderer
      ? props.spinnerRenderer()
      : (
        <div>
          
        </div>
      );
  }
  if (props.noData) {
    return props.noDataRenderer
      ? props.noDataRenderer()
      : (
        <p>
          {UiComponents.translate("general.noData")}
        </p>
      );
  }

  return props.children;
};