Custom Settings Panels

View as Markdown

Summary

  • Developers can add bespoke panels to the Settings Panel via Settings Panel Options
  • Each panel supplies and renders custom content

Developers can add custom panels to the Settings Panel.

Note

This allows users to manage AdapTable and application settings in one place

Custom panels are provided using the customSettingsPanels property in Settings Panel Options.

Deep Dive

Anatomy of a Custom Settings Panel

Providing Bespoke Content

Provide bespoke content with render on CustomSettingsPanel.

The function receives CustomRenderContext (phase, element, adaptableApi).

render?: (context: CustomRenderContext) => string | null;

Return HTML when phase is 'onMount'; return null on 'onDestroy' for teardown.

Developer Guide

Providing a Custom Settings Panel (Vanilla)

Custom Settings Panel (Vanilla)
Fork
  • Theme Switcher is the custom theme — a Switch Theme button toggles light and dark
  • An Application Settings panel uses render with CustomRenderContext lifecycle
  • description shows under each panel name in the navigation
  • navigation places both custom panels at the top of the Settings Panel nav
  • On load, Settings Panel API opens Theme Switcher
Loading demo…

Setting Navigation order

Use the navigation configurer on Settings Panel Options to customise grouped navigation in the Settings Panel.

The function receives AdapTable context and a clone of the default navigation, and returns { groups: [...] } where each group has:

  • label — section heading (use an empty string for items without a heading)
  • items — module or custom panel names in display order

Configuring the Settings Panel explains how to list shipped modules, custom panels, and groupings.

Caution

  • Custom panels will not appear unless explicitly listed in your navigation groups
  • If you omit navigation, AdapTable uses the default grouped module list and appends each custom panel to a Custom Panels group at the end

AdapTable Resources