#UI Components
Adaptable.UI and its nested components are the parts the full product is made
of, each usable on its own. Place them anywhere inside <Adaptable.Provider />:
they all work on the same state, so a part in your app header and one in a
sidebar stay in sync with each other and with the grid.
#Adaptable.UI
<Adaptable.UI /> renders the grid with the four dashboard bars around it, plus
the overlays: the settings panel in a dialog, notification toasts and cell note
popovers. It is the same as Adaptable.UI.Dashboard around
Adaptable.UI.DataGrid, followed by Adaptable.UI.Overlays. It takes
className and style; its props are listed in the
Adaptable.UI reference.
#The grid and the dashboard
Adaptable.UI.DataGrid— just the grid, with no dashboard and no overlays.Adaptable.UI.Dashboard— the dashboard bars around its children (usually the grid).slots={false}leaves the bars out.Adaptable.UI.Dashboard.Top,.Bottom,.Leftand.Rightrender a single bar anywhere. See Dashboard.Adaptable.UI.Overlays— the settings panel dialog, notification toasts and cell note popovers. They open on top of the page, so it can go anywhere inside the provider.
Adaptable.UI includes the overlays. With Adaptable.UI.DataGrid (on its own
or inside Adaptable.UI.Dashboard), render <Adaptable.UI.Overlays /> once in
your layout; without it, notifications and cell notes don't show and the
dashboard's settings buttons have no dialog to open.
#Pickers and editors
Adaptable.UI.ViewPicker— a dropdown of the views. It accepts theSelectprops exceptvalue,onChangeandoptions.Adaptable.UI.QuickSearch— the quick search input. See Quick Search.Adaptable.UI.ColumnChooser— pick and reorder the columns of the current table view.variantis'default'or'basic'.Adaptable.UI.GroupingEditor— row grouping for the current table view.Adaptable.UI.PivotEditor— the pivot columns of the current pivot view.
ColumnChooser and GroupingEditor render nothing while a pivot view is
active, and PivotEditor renders nothing for a table view.
#The settings panel
Adaptable.UI.SettingsPanel is the full settings panel: a searchable sidebar,
plus one page per feature. Embed it in a drawer, a dialog or a page section, or
let Adaptable.Workspace place it beside the grid.
defaultItemId— the page shown first (default'views'); see the settings page ids.headerExtra— content at the far end of the page header, such as a close button.itemId/onItemIdChange— control the page.
While a settings panel is mounted, adaptableApi.settingsPanelApi.showSettingsPanel()
(also called by the dashboard's settings buttons) switches it to the requested
page instead of opening the settings dialog.
#Settings pages on their own
Each settings page is also a component, so you can embed just the one you need:
- View editors, for the current view:
ViewManager,ViewColumnsEditor,ViewPivotColumnsEditor,ViewSortingEditor,ViewGroupingEditor,ViewAggregationsEditor,ViewGridFilterEditor,ViewSelectionEditor. - Feature managers:
CalculatedColumnsManager,NamedQueriesManager,ReportsManager,StyledCellsManager,FlashingCellsManager,CellNotesManager,AlertsManager,ThemeManager,DashboardManager.
They all take className. ViewColumnsEditor also takes showPinning,
showSizing, showRename, showAddColumn and showDataTypeQuickSelect to
hide parts of each column row, and showInspector to hide the column
inspector (all true by default).
Adaptable.UI.ViewSortingEditor at the top edits the sorting of the current
view; Adaptable.UI.Dashboard and Adaptable.UI.DataGrid below show it.
Change the sort order in the editor, or click a column header, and the other
one follows.
To build editors of your own, use the feature hooks
(useViewColumns, useColumnSorting, useStyledCells, …) — the built-in
editors use the same hooks.
#Replacing built-in parts
To replace a built-in view editor everywhere it appears, the settings panel
included, pass your own through the components prop:
ViewColumnsEditor, ViewSortingEditor, ViewGroupingEditor,
ViewAggregationsEditor, ViewGridFilterEditor, ViewSelectionEditor and
ViewPivotColumnsEditor.
The same prop also replaces:
AdaptableObjectEditorDialog— the container for creating and editing an Adaptable object (a calculated column, a styled cell, …), also used by the settings dialog. The default is a modal dialog; pass a drawer, a page or any other container. The built-in one isAdaptable.UI.AdaptableObjectEditorDialog.Notification— the toast that shows an alert notification.