Skip to content

Preview action on domain object composed of viewable domain objects #5180

Discussion options

You must be logged in to vote

Hi @jordan-bonecutter!

I believe you could do something like this:

import PreviewAction fom "@/ui/preview/PreviewAction.js";

const previewAction = new PreviewAction(openmct);
const objectPath = await openmct.objects.getOriginalPath(domainObject.identifier);
previewAction.invoke(objectPath);

We're going to be updating PreviewAction soon so that it will reuse any components that are already in the DOM (to enhance performance), but that should be a backward compatible change.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@jordan-bonecutter
Comment options

@akhenry
Comment options

@jordan-bonecutter
Comment options

@jordan-bonecutter
Comment options

@jvigliotta
Comment options

Answer selected by jordan-bonecutter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants