User Interface Technical Reference

Summary

  • User Interface State is used to hide / show the AdapTable UI
  • User Interface Options contains properties that can provided at design-time
  • User Interface API contains run-time functions to manage the UI

User Interface State

The UserInterfaceState section of AdapTable Initial State contains just one property:

PropertyTypeDescriptionDefault
HideAdaptableUIbooleanHides all AdapTable UI elements (i.e. Dashboard, Tool Panel, Status Bar, Column & Context Menus etc.)false

User Interface Options

The UserInterfaceOptions section contains a large collection of UI-related Options, including:

PropertyTypeDescriptionDefault
alternativeModuleNamesAlternativeModuleName[]Alternative names to use for Adaptable Modules in the UInull
applicationIconAdaptableIconThe application icon to appear in Dashboard and elsewhere (e.g. in Notifications)null
customIconsCustomIcon[] | (() =>CustomIcon[])Bespoke icons that can be used in AdapTable (e.g. Badge Styles and Buttons)
dateInputOptionsDateInputOptionsOptions for managing and customizing date inputs in AdapTable
disableDeleteConfirmationbooleanHides confirmation dialog which displays whenever an AdaptableObject is deletedfalse
editableCellStyleAdaptableStyleStyle to set for editable Cells
editedCellStyleAdaptableStyleStyle to set for Cells which have been edited
englishVariant'GB' | 'US'English variant to use in AdapTable UI'GB'
loadingScreenOptionsLoadingScreenOptionsOptions for showing Loading Screen (during initialisation)
objectTagsAdaptableObjectTag[] | ((context:ObjectTagsContext) =>AdaptableObjectTag[])Optional list of AdaptableObjectTags that can be associated with AdaptableObjects
readOnlyCellStyleAdaptableStyleStyle to set for non-editable Cells
showAdapTableVersionbooleanDisplays the AdapTable version in Grid Info section of Settings Paneltrue
showAgGridVersionbooleanDisplays the AG Grid version in Grid Info section of Settings Paneltrue
showDocumentationLinksbooleanProvide links to AdapTable documentation (in Module popups and Expression Editor)true
styleClassNamesstring[]Optional list of CSS styles that can be used when creating Adaptable Styles in Adaptable (e.g. in Format Column and other Modules)[]
useCustomMacLikeScrollbarsbooleanShow Mac-like scrollbars; size is configurable via CSS variable --ab-custom-scrollbar-size (default: 10px)false

Loading Screen Options

AdapTable allows developers to display a Loading Message when AG Grid (and AdapTable) initialises.

This is fully configurable via a series of proporties in the loadingScreenOptions section:

PropertyTypeDescriptionDefault
loadingScreenDelaynumberDelay in ms before Loading Screen appears200
loadingScreenTextstringText to display in Loading Screen.'Retrieving your settings and setting up the grid...'
loadingScreenTitlestringTitle to display in Loading Screen.'Initialising Grid'
showLoadingScreenbooleanDisplay Loading Screen when AdapTable initialisestrue

Find Out More

See Configuring the Loading Screen for full instructions

Date Input Options

The dateInputOptions section manages how Dates are rendered in AdapTable:

PropertyTypeDescriptionDefault
dateFormatstringFormat string for formatting date input field'yyyy-MM-dd' (ISO 8601 format)
datepickerButtonsDatepickerButton[]List of buttons which are displayed in the datepicker overlay in the given order (provide empty array to display no buttons); custom button layout and positioning is achievable with the special elements - and |['close','today']
localeanyLocale object (to localize Date Picker)en-US
showOutsideDaysbooleanDisplay outside days (i.e. those falling in next or previous month)true
showWeekNumberbooleanDisplay the week numbers columnfalse
useNativeInputbooleanUse browser specific date input instead of AdapTable's Date Pickerfalse

Find Out More

The dateInputOptions are described in greater detail in the Date Picker Guide


User Interface API

The UserInterfaceAPI section enables accessing the AdapTable UI at run-time:

MethodReturnsDescription
closeCustomWindowPopup(windowId)voidCloses a custom window
getAdaptableObjectsWithTag(tag, adaptableModule)AdaptableObject[] | undefinedRetrieves all objects in list which contain the given Tag
getAdaptableObjectTags()AdaptableObjectTag[] | undefinedRetrieves any Object Tags (provided in User Interface Options)
getColorPalette()string[]Retrieves Color Palette currently being used
getCustomIcons()CustomIcon[]Retrieves Custom Icons provided by users
getEditableCellStyle()AdaptableStyle | undefinedReturns Style set for Editable cells
getEditedCellStyle()AdaptableStyle | undefinedReturns Style for Cells that have been edited
getReadOnlyCellStyle()AdaptableStyle | undefinedReturns Style set for ReadOnly Cells
getStyleClassNames()string[] | undefinedRetrieves any Style Class Names from User Interface Options
getUserInterfaceState()UserInterfaceStateRetrieves the current User Interface State
hideAdaptableUI()voidHides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
hideProgressIndicator()voidHides the progress indicator
isAdaptableUIVisible()booleanReturns whether the AdapTable UI is currently visible
openCustomWindowPopup(config)\{ close: () => void; \}Opens a custom window popup
showAdaptableUI()voidShows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
showProgressIndicator(config)\{ close: () => void; \}Displays a progress indicator