How to use the @bentley/ui-abstract.getClassName function in @bentley/ui-abstract

To help you get started, we’ve selected a few @bentley/ui-abstract 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 / components / src / ui-components / tree / controlled / component / TreeRenderer.tsx View on Github external
function useContextWithoutDefaultValue<p>(ConsumingComponent: React.ComponentType</p><p>) {
    const value = useContext(context);
    /* istanbul ignore if */
    if (value === undefined) {
      throw new UiError(
        UiComponents.loggerCategory(ConsumingComponent),
        `'${getClassName(ConsumingComponent)}' expects to be wrapped by a '${contextName}' provider.`,
      );
    }

    return value;
  }
</p>
github imodeljs / imodeljs / test-apps / ui-test-app / src / frontend / index.tsx View on Github external
public static loggerCategory(obj: any): string {
    const className = getClassName(obj);
    const category = `ui-test-app.${className}`;
    return category;
  }
github imodeljs / imodeljs / ui / core / src / ui-core / UiCore.ts View on Github external
public static loggerCategory(obj: any): string {
    const className = getClassName(obj);
    const category = UiCore.packageName + (className ? `.${className}` : "");
    return category;
  }
github imodeljs / imodeljs / ui / framework / src / ui-framework / UiFramework.ts View on Github external
public static loggerCategory(obj: any): string {
    const className = getClassName(obj);
    const category = UiFramework.packageName + (className ? `.${className}` : "");
    return category;
  }
github imodeljs / imodeljs / ui / components / src / ui-components / UiComponents.ts View on Github external
public static loggerCategory(obj: any): string {
    const className = getClassName(obj);
    const category = UiComponents.packageName + (className ? `.${className}` : "");
    return category;
  }