How to use Elsa designer tree control #1319
Unanswered
GreenShadeZhang
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Indeed. It would be better for the Please feel free to open an issue for this, and even better, a PR that changes this. Until then, what you might be able to do is simply include import state from '../../../../utils/store';
import {createElsaClient} from "../../../../services";
// From some "onload" method or whichever initialization method is applicable in your own framework:
const client = createElsaClient(''); // Provide URL to Elsa Server.
state.monacoLibPath = ''; // path to monaco lib.
state.activityDescriptors = await client.activitiesApi.list();
state.workflowStorageDescriptors = await client.workflowStorageProvidersApi.list(); |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I use Elsa designer tree, I find that some of its data comes from state, but I use it in some front-end frameworks, such as Vue, so how can I pass in the data in state, such as state.activitydescriptors, to ensure normal rendering?
If activitydescriptors are not included, an error will be reported.
Beta Was this translation helpful? Give feedback.
All reactions