Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
if (dorado.widget.grid) {
	dorado.widget.grid.Column.prototype.ATTRIBUTES.supportsOptionMenu = {
		skipRefresh: true,
		defaultValue: true
	};
}

...

设置日期编辑框在只读情况下不出现trigger按钮

Code Block
javascript
if (dorado.widget.FormElement){
	dorado.widget.FormElement.prototype.getUserEditor=dorado.widget.FormElement.prototype.getEditor;
	dorado.widget.FormElement.prototype.getEditor = function(create){
		var editor = this.getUserEditor(create);
		var propertyDef = this.getBindingPropertyDef();
		if (propertyDef) {
			var propertyDataType = propertyDef.get("dataType");
			if (propertyDataType instanceof dorado.datatype.DateDataType && this.get("readOnly")) {
				editor.set("trigger",null);
			}
		}
		return editor;
	}
}