mirror of
https://github.com/nasa/openmct.git
synced 2024-12-20 05:37:53 +00:00
[Layout] Line endpoint coordinate editing
Added appropriate line endpoint coordinate editing input fields
This commit is contained in:
parent
2e6fcec1c3
commit
54e07ccfdd
@ -162,28 +162,28 @@ define([
|
|||||||
"control": "textfield"
|
"control": "textfield"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"method": "editX1",
|
"property": "editX1",
|
||||||
"text": "X1",
|
"text": "X1",
|
||||||
"name": "X1",
|
"name": "X1",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
"control" : "textfield"
|
"control" : "textfield"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "y1",
|
"property": "editY1",
|
||||||
"text": "Y1",
|
"text": "Y1",
|
||||||
"name": "Y1",
|
"name": "Y1",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
"control" : "textfield"
|
"control" : "textfield"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "x2",
|
"property": "editX2",
|
||||||
"text": "X2",
|
"text": "X2",
|
||||||
"name": "X2",
|
"name": "X2",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
"control" : "textfield"
|
"control" : "textfield"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "y2",
|
"property": "editY2",
|
||||||
"text": "Y2",
|
"text": "Y2",
|
||||||
"name": "Y2",
|
"name": "Y2",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
|
@ -148,6 +148,12 @@ define(
|
|||||||
return handles;
|
return handles;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Expose endpoint coordinates for editing
|
||||||
|
proxy.editX1 = new AccessorMutator(element,'x', proxy.checkNumeric);
|
||||||
|
proxy.editY1 = new AccessorMutator(element,'y', proxy.checkNumeric);
|
||||||
|
proxy.editX2 = new AccessorMutator(element,'x2', proxy.checkNumeric);
|
||||||
|
proxy.editY2 = new AccessorMutator(element,'y2', proxy.checkNumeric);
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user