projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b34d621
)
Changed Roo/DDView.jsRoo/grid/Grid.js
author
Alan Knowles
<alan@roojs.com>
Thu, 11 Mar 2021 06:36:31 +0000
(14:36 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 11 Mar 2021 06:36:31 +0000
(14:36 +0800)
Roo/DDView.js
patch
|
blob
|
history
Roo/grid/Grid.js
patch
|
blob
|
history
diff --git
a/Roo/DDView.js
b/Roo/DDView.js
index
c8a2872
..
2c8c612
100644
(file)
--- a/
Roo/DDView.js
+++ b/
Roo/DDView.js
@@
-28,10
+28,10
@@
Roo.DDView = function(container, tpl, config) {
this.getEl().setStyle("outline", "0px none");
this.getEl().unselectable();
if (this.dragGroup) {
this.getEl().setStyle("outline", "0px none");
this.getEl().unselectable();
if (this.dragGroup) {
-
this.setDraggable(this.dragGroup.split(","));
+ this.setDraggable(this.dragGroup.split(","));
}
if (this.dropGroup) {
}
if (this.dropGroup) {
-
this.setDroppable(this.dropGroup.split(","));
+ this.setDroppable(this.dropGroup.split(","));
}
if (this.deletable) {
this.setDeletable();
}
if (this.deletable) {
this.setDeletable();
diff --git
a/Roo/grid/Grid.js
b/Roo/grid/Grid.js
index
4732705
..
804f069
100644
(file)
--- a/
Roo/grid/Grid.js
+++ b/
Roo/grid/Grid.js
@@
-320,6
+320,9
@@
Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
/**
* @cfg {String} ddGroup - drag drop group.
*/
/**
* @cfg {String} ddGroup - drag drop group.
*/
+ /**
+ * @cfg {String} dragGroup - drag group (?? not sure if needed.)
+ */
/**
* @cfg {Number} minColumnWidth The minimum width a column can be resized to. Default is 25.
/**
* @cfg {Number} minColumnWidth The minimum width a column can be resized to. Default is 25.
@@
-356,6
+359,9
@@
Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
/**
* @cfg {Boolean} enableDrag True to enable drag of rows. Default is false. (double check if this is needed?)
/**
* @cfg {Boolean} enableDrag True to enable drag of rows. Default is false. (double check if this is needed?)
+ */
+ /**
+ * @cfg {Boolean} enableDrop True to enable drop of elements. Default is false. (double check if this is needed?)
*/
/**
*/
/**
@@
-430,6
+436,15
@@
Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
/**
* @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if autoHeight is not on.
*/
/**
* @cfg {Number} maxHeight Sets the maximum height of the grid - ignored if autoHeight is not on.
*/
+
+
+ /**
+ * @cfg {String} ddText Configures the text is the drag proxy (defaults to "%0 selected row(s)").
+ * %0 is replaced with the number of selected rows.
+ */
+ ddText : "{0} selected row{1}",
+
+
/**
* Called once after all setup has been completed and the grid is ready to be rendered.
* @return {Roo.grid.Grid} this
/**
* Called once after all setup has been completed and the grid is ready to be rendered.
* @return {Roo.grid.Grid} this
@@
-745,6
+760,7
@@
Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
},
/**
* Called to get grid's drag proxy text, by default returns this.ddText.
},
/**
* Called to get grid's drag proxy text, by default returns this.ddText.
+ * Override this to put something different in the dragged text.
* @return {String}
*/
getDragDropText : function(){
* @return {String}
*/
getDragDropText : function(){
@@
-752,9
+768,3
@@
Roo.extend(Roo.grid.Grid, Roo.util.Observable, {
return String.format(this.ddText, count, count == 1 ? '' : 's');
}
});
return String.format(this.ddText, count, count == 1 ? '' : 's');
}
});
-/**
- * Configures the text is the drag proxy (defaults to "%0 selected row(s)").
- * %0 is replaced with the number of selected rows.
- * @type String
- */
-Roo.grid.Grid.prototype.ddText = "{0} selected row{1}";
\ No newline at end of file