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:

PropertyDescriptionDefault
HideAdaptableUIHides 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:

PropertyDescriptionDefault
alternativeModuleNamesAlternative names to use for Adaptable Modules in the UInull
applicationIconThe application icon to appear in Dashboard and elsewhere (e.g. in Notifications)null
colorPaletteColours to display in Colour Picker (in place of AdapTable's default set); can be hardcoded list or function
customIconsBespoke icons that can be used in AdapTable (e.g. Badge Styles and Buttons)
dateInputOptionsOptions for managing and customizing date inputs in AdapTable
disableDeleteConfirmationHides confirmation dialog which displays whenever an AdaptableObject is deletedfalse
editableCellStyleStyle to set for editable Cells
editedCellStyleStyle to set for Cells which have been edited
englishVariantEnglish variant to use in AdapTable UI'GB'
loadingScreenOptionsOptions for showing Loading Screen (during initialisation)
objectTagsOptional list of AdaptableObjectTags that can be associated with AdaptableObjects
readOnlyCellStyleStyle to set for non-editable Cells
showAdapTableVersionDisplays the AdapTable version in Grid Info section of Settings Paneltrue
showAgGridVersionDisplays the AG Grid version in Grid Info section of Settings Paneltrue
showDocumentationLinksProvide links to AdapTable documentation (in Module popups and Expression Editor)true
styleClassNamesOptional list of CSS styles that can be used when creating Adaptable Styles in Adaptable (e.g. in Format Column and other Modules)
useCustomMacLikeScrollbarsShow 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:

PropertyDescriptionDefault
loadingScreenDelayDelay in ms before Loading Screen appears200
loadingScreenTextText to display in Loading Screen.'Retrieving your settings and setting up Grid...'
loadingScreenTitleTitle to display in Loading Screen.'Initialising Grid'
showLoadingScreenDisplay 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:

PropertyDescriptionDefault
dateFormatFormat string for formatting date input field'yyyy-MM-dd' (ISO 8601 format)
datepickerButtonsList 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']
localeLocale object (to localize Date Picker)en-US
showOutsideDaysDisplay outside days (i.e. those falling in next or previous month)true
showWeekNumberDisplay the week numbers columnfalse
useNativeInputUse 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:

MethodDescription
closeCustomWindowPopup(windowId)Closes a custom window
getAdaptableObjectsWithTag(tag, adaptableModule)Retrieves all objects in list which contain the given Tag
getAdaptableObjectTags()Retrieves any Object Tags (provided in User Interface Options)
getColorPalette()Retrieves Color Palette currently being used
getCustomIcons()Retrieves Custom Icons provided by users
getEditableCellStyle()Returns Style set for Editable cells
getEditedCellStyle()Returns Style for Cells that have been edited
getReadOnlyCellStyle()Returns Style set for ReadOnly Cells
getStyleClassNames()Retrieves any Style Class Names from User Interface Options
getUserInterfaceState()Retrieves the current User Interface State
hideAdaptableUI()Hides all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
hideProgressIndicator()Hides the progress indicator
isAdaptableUIVisible()Returns whether the AdapTable UI is currently visible
openCustomWindowPopup(config)Opens a custom window popup
showAdaptableUI()Shows all AdapTable UI elements (Dashboard, Tool Panel, Status Bar, Column and Context Menus etc.)
showProgressIndicator(config)Displays a progress indicator