/// <summary> /// 基本输入框 /// </summary> /// <returns></returns> public TextAreaDescriptor AsTextArea() { TextAreaDescriptor tag = new TextAreaDescriptor(_modelType, _key); tag.DataType = _dataType; _attributes[this._key] = tag; return(tag); }
/// <summary> /// 基本输入框 /// </summary> /// <returns></returns> public TextAreaDescriptor AsTextArea() { TextAreaDescriptor tag = new TextAreaDescriptor(_modelType, _key); if (_attributes.ContainsKey(this._key)) { _attributes.Remove(this._key); } tag.DataType = _dataType; _attributes.Add(this._key, tag); return(tag); }
public static TextAreaDescriptor AsCodeEditor(this TextAreaDescriptor textArea) { return(textArea.SetTemplate("TemplateContent")); }