AdapTable Wizards

Summary

  • Wizards provide an intuitive way to create and edit AdapTable objects
  • Each wizard contains a number of steps enabling the object to be built in discrete stages
  • Wizards can be launched from inside the Settings Panel or directly from a Column Menu / Context Menu
  • Use the wizardOptions property in Wizard Technical Reference to configure how wizards are displayed

The AdapTable Wizard allows run time users to create and edit Adaptable Objects e.g. Custom Sort or Column Formatting in a step by step manner.

Launching Wizards

Wizards can be launched from 2 places:

  • Inside the Settings Panel - in any Settings Panel section that holds a collection of Adaptable Objects (e.g. Format Column or Layout), use New and Edit buttons to create and edit objects
  • Column or Context Menu - many wizards can be opened directly from the grid, e.g. Create Format Column in the Column Menu, bypassing the Settings Panel

Note

  • When launching wizards via a menu, the Settings Panel is technically in the background and the wizard sits in front
  • Closing the wizard returns the user to the Settings Panel on the relevant section.

The position, size and modality of a wizard is independent of the Settings Panel.

This is intentional - wizards typically contain more content than the Settings Panel's list view and often need more room.

Wizard Modules

The following AdapTable Modules contain a Wizard:

Wizard Features

Wizards contain a number of useful features including:

  • vertical menu on the left naming (and numbering) each step in the process

  • ability to navigate to a particular step by clicking Ctrl (Command for Mac) and the number of the step

  • option to cycle through all the steps clicking Ctrl (Command for Mac) and either + or - key

  • full context-sensitive instructions and help regarding what is required in each step

  • information icon displayed next to steps which require information to be provided

  • if finish button is disabled, message is displayed explaining what is required to re-enable

  • intuitive summary screen providing at a glance information about the object created, together with buttons to edit each section of the wizard

Configuring Wizards

Developers can configure the appearance and behaviour of wizards using the wizardOptions property in Adaptable Options.

Wizard Options provides 3 properties:

PropertyDescription
popupTypeWhether wizards open as a centred modal or a draggable / resizable window
positionThe initial position of the wizard (when popupType is 'window')
sizeThe initial size of the wizard (when popupType is 'window')

Note

  • wizardOptions applies to all wizards, regardless of where they are launched from
  • Each wizard remembers its own dragged position and size independently of the others

By default wizards open as a modal - a fixed-size panel centred on screen with a backdrop.

For users who prefer to keep the underlying grid visible (or who want to drag the wizard out of the way), set popupType to 'window'. The wizard is then draggable, resizable and honours the position and size options.

Caution

With the default value of 'modal', the wizard cannot be moved or resized (and position / size are ignored).

popupType

Default: modal
modal | window
Configures how the Wizard popup behaves

Size and Position

When popupType is 'window', two further properties control the initial size and location of the wizard:

  • position - using x, y values (pixel offset from the top-left of the viewport)
  • size - setting width and height in pixels

Caution

  • Both of these are only applied if popupType is 'window'
  • The user's subsequent drag/resize is remembered for each wizard separately

position

Default: Middle of Screen
2 numbers
Initial position of the Wizard window

size

Default: 90% of viewport height, 90% of viewport width (capped at 1200px)
2 numbers
Initial size of the Wizard window
Deep Dive

Wizards vs Settings Panel

Configuring Wizards
Fork
  • This demo configures both the Settings Panel and Wizards as draggable windows with their own size and position.
  • The Settings Panel opens at (10, 10) so it sits in the top-left, while wizards open larger and centred so they have room for their content.
Try It Out
  • Open the Settings Panel and navigate to Format Column
  • Click New to launch the Format Column wizard - it opens at the configured wizard position / size, independent of the Settings Panel
  • Alternatively, right-click any column header and select Create Format Column from the menu - the wizard opens the same way
  • Drag and resize either window - each remembers its own position independently
Loading demo…