mirror of
https://github.com/nasa/openmct.git
synced 2025-03-23 04:25:27 +00:00
[Fixed Position] Add remove button
Add a 'remove' button when elements are selected in fixed position view, WTD-879.
This commit is contained in:
parent
a4dd730764
commit
f66fb0a32d
@ -27,15 +27,18 @@
|
||||
{
|
||||
"method": "add",
|
||||
"control": "button",
|
||||
"text": "Add"
|
||||
"text": "Add",
|
||||
"inclusive": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"property": "z",
|
||||
"control": "textfield"
|
||||
"method": "remove",
|
||||
"control": "button",
|
||||
"text": "Remove",
|
||||
"inclusive": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -77,9 +77,9 @@ define(
|
||||
}
|
||||
|
||||
// Decorate an element for display
|
||||
function makeProxyElement(element) {
|
||||
function makeProxyElement(element, index, elements) {
|
||||
var ElementProxy = ElementProxies[element.type],
|
||||
e = ElementProxy && new ElementProxy(element);
|
||||
e = ElementProxy && new ElementProxy(element, index, elements);
|
||||
|
||||
if (e) {
|
||||
// Provide a displayable position (convert from grid to px)
|
||||
|
Loading…
x
Reference in New Issue
Block a user