Patrick de Mooij
10/17/2024, 7:04 PMPatrick de Mooij
10/17/2024, 7:06 PMPatrick de Mooij
10/17/2024, 7:06 PMPatrick de Mooij
10/17/2024, 7:07 PMNiels Lyngsø
10/17/2024, 7:46 PMextends UmbContextBase
and then use this token for it, when extending the context base, its parsed as the second argument for the constructor:
constructor(host: UmbControllerHost) {
super(host, UMB_WORKSPACE_CONTEXT.toString());`
The reason for this is that the Condition you use for the Workspace View, is consuming the Workspace Context to check for the Entity Type or Workspace Alias — depending on which of the conditions you use. 🙂
I hope that makes sense and helps you moving forward 🙂Patrick de Mooij
10/17/2024, 8:24 PMNiels Lyngsø
10/18/2024, 7:26 AMthis.provideContext(ST_SCRIPTMANAGER_MODULE_TOKEN_CONTEXT, this);
this.provideContext(UMB_WORKSPACE_CONTEXT, this);
the difference between a controller and a context, is near to none. a context is a controller that is provided as a context. Which is done by one of the lines above. 🙂Niels Lyngsø
10/18/2024, 7:27 AM