mirror of
https://github.com/nasa/openmct.git
synced 2025-06-11 03:41:37 +00:00
[Fixed position] Incorporate numberfield control
This commit is contained in:
parent
542b7a6f20
commit
a6079936e8
@ -152,100 +152,66 @@ define([
|
|||||||
"text": "X",
|
"text": "X",
|
||||||
"name": "X",
|
"name": "X",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control": "numberfield",
|
"control": "numberfield",
|
||||||
"min": "0"
|
"min": "0"
|
||||||
=======
|
|
||||||
"control": "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editY",
|
"property": "editY",
|
||||||
"text": "Y",
|
"text": "Y",
|
||||||
"name": "Y",
|
"name": "Y",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control": "numberfield",
|
"control": "numberfield",
|
||||||
"min": "0"
|
"min": "0"
|
||||||
=======
|
|
||||||
"control": "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editX1",
|
"property": "editX1",
|
||||||
"text": "X1",
|
"text": "X1",
|
||||||
"name": "X1",
|
"name": "X1",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control" : "numberfield",
|
"control" : "numberfield",
|
||||||
"min": "0"
|
"min": "0"
|
||||||
=======
|
|
||||||
"control" : "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editY1",
|
"property": "editY1",
|
||||||
"text": "Y1",
|
"text": "Y1",
|
||||||
"name": "Y1",
|
"name": "Y1",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control" : "numberfield",
|
"control" : "numberfield",
|
||||||
"min": 0
|
"min": 0
|
||||||
=======
|
|
||||||
"control" : "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editX2",
|
"property": "editX2",
|
||||||
"text": "X2",
|
"text": "X2",
|
||||||
"name": "X2",
|
"name": "X2",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control" : "numberfield",
|
"control" : "numberfield",
|
||||||
"min": "0"
|
"min": "0"
|
||||||
=======
|
|
||||||
"control" : "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editY2",
|
"property": "editY2",
|
||||||
"text": "Y2",
|
"text": "Y2",
|
||||||
"name": "Y2",
|
"name": "Y2",
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
<<<<<<< HEAD
|
|
||||||
"control" : "numberfield",
|
"control" : "numberfield",
|
||||||
"min": "0"
|
"min": "0"
|
||||||
=======
|
|
||||||
"control" : "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editHeight",
|
"property": "editHeight",
|
||||||
"text": "H",
|
"text": "H",
|
||||||
"name": "H",
|
"name": "H",
|
||||||
<<<<<<< HEAD
|
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
"control": "numberfield",
|
"control": "numberfield",
|
||||||
"description": "Resize change object height",
|
"description": "Resize object height",
|
||||||
"min": "1"
|
"min": "1"
|
||||||
=======
|
|
||||||
"cssClass": "l-input-sm numerical",
|
|
||||||
"control": "textfield",
|
|
||||||
"description": "Resize change object height"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "editWidth",
|
"property": "editWidth",
|
||||||
"text": "W",
|
"text": "W",
|
||||||
"name": "W",
|
"name": "W",
|
||||||
<<<<<<< HEAD
|
|
||||||
"cssClass": "l-input-sm",
|
"cssClass": "l-input-sm",
|
||||||
"control": "numberfield",
|
"control": "numberfield",
|
||||||
|
"description": "Resize object width",
|
||||||
"min": "1"
|
"min": "1"
|
||||||
=======
|
|
||||||
"cssClass": "l-input-sm numerical",
|
|
||||||
"control": "textfield"
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -53,17 +53,10 @@ define(
|
|||||||
proxy.fill = new AccessorMutator(element, 'fill');
|
proxy.fill = new AccessorMutator(element, 'fill');
|
||||||
|
|
||||||
//Expose x,y, width and height for editing
|
//Expose x,y, width and height for editing
|
||||||
<<<<<<< HEAD
|
|
||||||
proxy.editWidth = new AccessorMutator(element, 'width');
|
proxy.editWidth = new AccessorMutator(element, 'width');
|
||||||
proxy.editHeight = new AccessorMutator(element, 'height');
|
proxy.editHeight = new AccessorMutator(element, 'height');
|
||||||
proxy.editX = new AccessorMutator(element, 'x');
|
proxy.editX = new AccessorMutator(element, 'x');
|
||||||
proxy.editY = new AccessorMutator(element, 'y');
|
proxy.editY = new AccessorMutator(element, 'y');
|
||||||
=======
|
|
||||||
proxy.editWidth = new AccessorMutator(element, 'width', proxy.checkNumeric);
|
|
||||||
proxy.editHeight = new AccessorMutator(element, 'height', proxy.checkNumeric);
|
|
||||||
proxy.editX = new AccessorMutator(element, 'x', proxy.checkNumeric);
|
|
||||||
proxy.editY = new AccessorMutator(element, 'y', proxy.checkNumeric);
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
@ -49,18 +49,11 @@ define(
|
|||||||
*/
|
*/
|
||||||
proxy.url = new AccessorMutator(element, 'url');
|
proxy.url = new AccessorMutator(element, 'url');
|
||||||
|
|
||||||
//Expose width and height properties for editing
|
//Expose x,y, width and height properties for editing
|
||||||
<<<<<<< HEAD
|
|
||||||
proxy.editWidth = new AccessorMutator(element, 'width');
|
proxy.editWidth = new AccessorMutator(element, 'width');
|
||||||
proxy.editHeight = new AccessorMutator(element, 'height');
|
proxy.editHeight = new AccessorMutator(element, 'height');
|
||||||
proxy.editX = new AccessorMutator(element, 'x');
|
proxy.editX = new AccessorMutator(element, 'x');
|
||||||
proxy.editY = new AccessorMutator(element, 'y');
|
proxy.editY = new AccessorMutator(element, 'y');
|
||||||
=======
|
|
||||||
proxy.editWidth = new AccessorMutator(element, 'width', proxy.checkNumeric);
|
|
||||||
proxy.editHeight = new AccessorMutator(element, 'height', proxy.checkNumeric);
|
|
||||||
proxy.editX = new AccessorMutator(element, 'x', proxy.checkNumeric);
|
|
||||||
proxy.editY = new AccessorMutator(element, 'y', proxy.checkNumeric);
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
@ -149,17 +149,11 @@ define(
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Expose endpoint coordinates for editing
|
// Expose endpoint coordinates for editing
|
||||||
<<<<<<< HEAD
|
|
||||||
proxy.editX1 = new AccessorMutator(element, 'x');
|
proxy.editX1 = new AccessorMutator(element, 'x');
|
||||||
proxy.editY1 = new AccessorMutator(element, 'y');
|
proxy.editY1 = new AccessorMutator(element, 'y');
|
||||||
proxy.editX2 = new AccessorMutator(element, 'x2');
|
proxy.editX2 = new AccessorMutator(element, 'x2');
|
||||||
proxy.editY2 = new AccessorMutator(element, 'y2');
|
proxy.editY2 = new AccessorMutator(element, 'y2');
|
||||||
=======
|
|
||||||
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);
|
|
||||||
>>>>>>> 39fe2fd7b6f0fd79e7f75ae9d04ba20d74d8e2c5
|
|
||||||
|
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user