mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 23:12:23 +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"
|
||||
},
|
||||
{
|
||||
"method": "editX1",
|
||||
"property": "editX1",
|
||||
"text": "X1",
|
||||
"name": "X1",
|
||||
"cssClass": "l-input-sm",
|
||||
"control" : "textfield"
|
||||
},
|
||||
{
|
||||
"property": "y1",
|
||||
"property": "editY1",
|
||||
"text": "Y1",
|
||||
"name": "Y1",
|
||||
"cssClass": "l-input-sm",
|
||||
"control" : "textfield"
|
||||
},
|
||||
{
|
||||
"property": "x2",
|
||||
"property": "editX2",
|
||||
"text": "X2",
|
||||
"name": "X2",
|
||||
"cssClass": "l-input-sm",
|
||||
"control" : "textfield"
|
||||
},
|
||||
{
|
||||
"property": "y2",
|
||||
"property": "editY2",
|
||||
"text": "Y2",
|
||||
"name": "Y2",
|
||||
"cssClass": "l-input-sm",
|
||||
|
@ -148,6 +148,12 @@ define(
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user