git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.2.2 - Released 06/02/2010
[extjs.git]
/
src
/
widgets
/
form
/
CompositeField.js
diff --git
a/src/widgets/form/CompositeField.js
b/src/widgets/form/CompositeField.js
index
cac9d8a
..
d526c5a
100644
(file)
--- a/
src/widgets/form/CompositeField.js
+++ b/
src/widgets/form/CompositeField.js
@@
-1,5
+1,5
@@
/*!
/*!
- * Ext JS Library 3.2.
1
+ * Ext JS Library 3.2.
2
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
* Copyright(c) 2006-2010 Ext JS, Inc.
* licensing@extjs.com
* http://www.extjs.com/license
@@
-72,6
+72,11
@@
Ext.form.CompositeField = Ext.extend(Ext.form.Field, {
* True to combine errors from the individual fields into a single error message at the CompositeField level (defaults to true)
*/
combineErrors: true,
* True to combine errors from the individual fields into a single error message at the CompositeField level (defaults to true)
*/
combineErrors: true,
+
+ /**
+ * @cfg {String} labelConnector The string to use when joining segments of the built label together (defaults to ', ')
+ */
+ labelConnector: ', ',
//inherit docs
//Builds the composite field label
//inherit docs
//Builds the composite field label
@@
-314,7
+319,7
@@
Ext.form.CompositeField = Ext.extend(Ext.form.Field, {
* @return {String} The built label
*/
buildLabel: function(segments) {
* @return {String} The built label
*/
buildLabel: function(segments) {
- return
segments.join(", "
);
+ return
Ext.clean(segments).join(this.labelConnector
);
},
/**
},
/**