mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 00:23:54 +00:00
0d8dad1559
* Support category arrays for legacy actions * Fixed object path listener. Removed old context menus * Removed old fullscreen action and Screenfull dependency * Restore confirmation dialog on remove * Restored tests * Remove unused legacy policies * WIP re-implementation of Preview action * WIP for Charles to take a look at flex issues * Disable legacy preview action * Style and markup fixes for new Preview - LegacyViewProvider modded to wrap legacy elements in .u-contents div; - Added selector that automatically defines display: contents on `no-class` divs injected into __object-view; - Unit tested with legacy and new components (telem tables, plot view, Notebook, etc.) * Tweak z-indexes, fix open in new tab action, add 'done' button * Removed legacy action * reuse contextMenuDropDown component
This bundle provides dialogService
, which can be used to prompt
for user input.
getUserChoice
The getUserChoice
method is useful for displaying a message and a set of
buttons. This method returns a promise which will resolve to the user's
chosen option (or, more specifically, its key
), and will be rejected if
the user closes the dialog with the X in the top-right;
The dialogModel
given as an argument to this method should have the
following properties.
title
: The title to display at the top of the dialog.hint
: Short message to display below the title.template
: Identifying key (as will be passed tomct-include
) for the template which will be used to populate the inner area of the dialog.model
: Model to pass in theng-model
attribute ofmct-include
.parameters
: Parameters to pass in theparameters
attribute ofmct-include
.options
: An array of options describing each button at the bottom. Each option may have the following properties:name
: Human-readable name to display in the button.key
: Machine-readable key, to pass as the result of the resolved promise when clicked.description
: Description to show in tool tip on hover.