[Fixed Position] Add remove button

Add a 'remove' button when elements are selected in
fixed position view, WTD-879.
This commit is contained in:
Victor Woeltjen 2015-02-18 19:56:54 -08:00
parent a4dd730764
commit f66fb0a32d
2 changed files with 8 additions and 5 deletions

View File

@ -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
}
]
}

View File

@ -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)