Item Views
- Last UpdatedMay 10, 2023
- 1 minute read
This section describes the parameters that can be used in the JS file when creating an extension to add a "view".
Registration
Method: ItemViews.register(id, definition)
Registration Definition Parameters
|
Parameter |
Description |
Required/Optional |
Default Value |
|---|---|---|---|
|
directive |
The name of the directive to use to fulfill the functionality |
Required |
|
|
text |
The text to display in the view selection menu for the action. |
Required |
|
|
when |
An expression for when the view should be shown |
Optional |
|
|
order |
The order in which it should be displayed. |
Optional |
10000 |
Directive
Directive Scope Parameters
|
Parameter |
Description |
Required/Optional |
|---|---|---|
|
items |
The item that this is a view for. |
Required |