Escape Hatches
deephaven.ui offers a versatile API for building comprehensive UI layouts. However, there may be scenarios where the provided API does not cover specific customization needs. In such cases, three “escape hatches” are available to enable additional customization of deephaven.ui components.
Avoid using these options unless necessary.
ui.html- Provides a set of functions for creating raw HTML elements.UNSAFE_class_name- Allows a custom A CSS class to apply to mostdeephaven.uicomponents.UNSAFE_style- Allows a custom A CSS style to apply to mostdeephaven.uicomponents.
ui.html
deephaven.ui provides a large list of components for building a UI. If you need a UI element that is not available, you can use ui.html to inject html tags into your UI.
UNSAFE_class_name
If a component’s styling props are not sufficient, you can set the UNSAFE_class_name prop, which sets the HTML className attribute on the element. To do this, you must use ui.html to define a class name.
UNSAFE_style
Rather than define a class name as above, you can use the UNSAFE_style prop, which allows you to set style props directly on a component using a dict.