mirror of
https://github.com/nasa/openmct.git
synced 2025-05-08 11:38:35 +00:00
[Edit] Wire in toolbar representer
Wire in representer for handling toolbars in Edit mode, and add some clarifying documentation. WTD-878.
This commit is contained in:
parent
023c12ec3b
commit
48754c78bf
@ -31,3 +31,11 @@ proxy in the current selection (in addition to whatever objects the
|
|||||||
user will conceive of as part of the current selection), typically
|
user will conceive of as part of the current selection), typically
|
||||||
with `inclusive` set to `true`.
|
with `inclusive` set to `true`.
|
||||||
|
|
||||||
|
## Selection
|
||||||
|
|
||||||
|
The `selection` property of a view's scope in Edit mode will be
|
||||||
|
initialized to an empty array. This array's contents may be modified
|
||||||
|
to implicitly change the contents of the toolbar based on the rules
|
||||||
|
described above. Care should be taken to modify this array in-place
|
||||||
|
instead of shadowing it (as the selection will typically
|
||||||
|
be a few scopes up the hierarchy from the view's actual scope.)
|
||||||
|
@ -94,6 +94,9 @@
|
|||||||
{
|
{
|
||||||
"implementation": "EditRepresenter.js",
|
"implementation": "EditRepresenter.js",
|
||||||
"depends": [ "$q", "$log" ]
|
"depends": [ "$q", "$log" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"implementation": "representers/EditToolbarRepresenter.js"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user