update workspace action
This commit is contained in:
@@ -17,26 +17,22 @@ import { Meta } from '@storybook/addon-docs';
|
|||||||
|
|
||||||
**Manifest**
|
**Manifest**
|
||||||
|
|
||||||
```json
|
```javascript
|
||||||
{
|
import { extensionRegistry } from '@umbraco-cms/extension-registry';
|
||||||
"type": "workspaceAction",
|
import { MyWorkspaceAction } from './my-workspace-action';
|
||||||
"alias": "My.WorkspaceAction.Workspace.Action",
|
|
||||||
"name": "My Workspace Action",
|
const manifest = {
|
||||||
"meta": {
|
type: 'workspaceAction',
|
||||||
"workspaces": ["My.Workspace"],
|
alias: 'My.WorkspaceAction',
|
||||||
"label": "Run",
|
name: 'My Workspace Action',
|
||||||
"look": "primary",
|
meta: {
|
||||||
"color": "positive",
|
workspaces: ['My.Workspace'],
|
||||||
},
|
label: 'My Action',
|
||||||
|
api: MyWorkspaceAction,
|
||||||
},
|
},
|
||||||
|
};
|
||||||
|
|
||||||
```
|
extensionRegistry.register(manifest);
|
||||||
|
|
||||||
**Default Element**
|
|
||||||
|
|
||||||
```ts
|
|
||||||
// TODO: get interface
|
|
||||||
interface UmbWorkspaceActionElement {}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### The Workspace Action Class
|
### The Workspace Action Class
|
||||||
@@ -58,3 +54,10 @@ export class MyWorkspaceAction extends UmbWorkspaceActionBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Default Element**
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// TODO: get interface
|
||||||
|
interface UmbWorkspaceActionElement {}
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user