mirror of
https://github.com/nasa/openmct.git
synced 2025-05-31 06:31:04 +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",
|
"method": "add",
|
||||||
"control": "button",
|
"control": "button",
|
||||||
"text": "Add"
|
"text": "Add",
|
||||||
|
"inclusive": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"property": "z",
|
"method": "remove",
|
||||||
"control": "textfield"
|
"control": "button",
|
||||||
|
"text": "Remove",
|
||||||
|
"inclusive": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -77,9 +77,9 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Decorate an element for display
|
// Decorate an element for display
|
||||||
function makeProxyElement(element) {
|
function makeProxyElement(element, index, elements) {
|
||||||
var ElementProxy = ElementProxies[element.type],
|
var ElementProxy = ElementProxies[element.type],
|
||||||
e = ElementProxy && new ElementProxy(element);
|
e = ElementProxy && new ElementProxy(element, index, elements);
|
||||||
|
|
||||||
if (e) {
|
if (e) {
|
||||||
// Provide a displayable position (convert from grid to px)
|
// Provide a displayable position (convert from grid to px)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user