Utilities
Various utility classes, functions and React hooks for working with a UI.
Classes
| Name |
Description |
|
| IconHelper |
Icon Helper Class used to store the data needed to generate an for use in any control that shows an icon. |
|
| IconWebComponent |
IconWebComponent loads icon from an svg path |
|
| ScrollPositionMaintainer |
A helper class to recursively save and restore scroll positions. |
|
| Timer |
Notifies handler after a set interval. |
|
| UiCore |
Manages the Localization service for the core-react package. |
|
| UiEvent |
iTwin.js UI UiEvent class is a subclass of BeEvent with argument type safety. |
|
Global Functions
| Name |
Description |
|
| ElementResizeObserver |
ElementResizeObserver provides functionality similar to ReactResizeDetector when a render function is specified. |
|
| getCssVariable |
Get CSS variable |
|
| getCssVariableAsNumber |
Get CSS variable as number |
|
| ResizableContainerObserver |
ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when |
|
| Hook that will show a popup window |
Beta |
| useDisposable |
A custom hook which creates a disposable object and manages its disposal on unmount |
|
| useEffectSkipFirst |
Custom hook which works like useEffect hook, but does not invoke callback when effect is triggered for the first time. |
|
| useInterval |
Hook that create an interval and clears it when unloaded |
Beta |
| useOnOutsideClick |
Invokes onOutsideClick handler when user clicks outside of referenced element. |
|
| useOptionalDisposable |
A custom hook which calls the factory method to create a disposable object |
|
Interfaces
Type Aliases
Last Updated:
30 November, 2023