Panel Container
PanelContainer is the base class for creating custom panel containers in
@deck.gl-community/panels.
Extend it when the built-in panel containers do not match the behavior or layout your application needs.
Usage
import {PanelContainer, type PanelContainerProps} from '@deck.gl-community/panels';
class CustomPanelContainer extends PanelContainer<PanelContainerProps> {
placement = 'top-right' as const;
className = 'custom-panel-container';
onRenderHTML(rootElement: HTMLElement): void {
rootElement.textContent = 'Custom container content';
}
}
const container = new CustomPanelContainer({id: 'custom-container'});
Remarks
PanelBox,PanelModal,PanelSidebar, andPanelFullScreenall extendPanelContainer.PanelManagermountsPanelContainerinstances into plain HTML.- Deck.gl wrapper widgets in
@deck.gl-community/widgetsbuild on the same panel-container model.