forked from extern/egroupware
Move align interface with the rest
This commit is contained in:
parent
b5b98f9a8b
commit
e5c508a609
@ -18,13 +18,6 @@
|
|||||||
et2_core_DOMWidget;
|
et2_core_DOMWidget;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Interface for widgets which have the align attribute
|
|
||||||
*/
|
|
||||||
var et2_IAligned = new Interface({
|
|
||||||
get_align: function() {}
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class which manages the DOM node itself. The simpleWidget class is derrived
|
* Class which manages the DOM node itself. The simpleWidget class is derrived
|
||||||
* from et2_DOMWidget and implements the getDOMNode function. A setDOMNode
|
* from et2_DOMWidget and implements the getDOMNode function. A setDOMNode
|
||||||
|
@ -70,6 +70,13 @@ var et2_IResizeable = new Interface({
|
|||||||
resize: function() {}
|
resize: function() {}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interface for widgets which have the align attribute
|
||||||
|
*/
|
||||||
|
var et2_IAligned = new Interface({
|
||||||
|
get_align: function() {}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface for widgets which want to e.g. perform clientside validation before
|
* Interface for widgets which want to e.g. perform clientside validation before
|
||||||
* the form is submitted.
|
* the form is submitted.
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
* This also includes repeating the last row in the grid and filling
|
* This also includes repeating the last row in the grid and filling
|
||||||
* it with content data
|
* it with content data
|
||||||
*/
|
*/
|
||||||
var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned], {
|
||||||
|
|
||||||
createNamespace: true,
|
createNamespace: true,
|
||||||
|
|
||||||
@ -33,6 +33,12 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
|||||||
"border": {
|
"border": {
|
||||||
"ignore": true
|
"ignore": true
|
||||||
},
|
},
|
||||||
|
"align": {
|
||||||
|
"name": "Align",
|
||||||
|
"type": "string",
|
||||||
|
"default": "left",
|
||||||
|
"description": "Position of this element in the parent hbox"
|
||||||
|
},
|
||||||
"spacing": {
|
"spacing": {
|
||||||
"ignore": true
|
"ignore": true
|
||||||
},
|
},
|
||||||
@ -623,6 +629,14 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM], {
|
|||||||
return this._super(this, vis);
|
return this._super(this, vis);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
set_align: function(_value) {
|
||||||
|
this.align = _value;
|
||||||
|
},
|
||||||
|
|
||||||
|
get_align: function(_value) {
|
||||||
|
return this.align;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Code for implementing et2_IDetachedDOM
|
* Code for implementing et2_IDetachedDOM
|
||||||
* This doesn't need to be implemented.
|
* This doesn't need to be implemented.
|
||||||
|
Loading…
Reference in New Issue
Block a user