Beispiel #1
0
        /// <summary>
        /// 基本输入框
        /// </summary>
        /// <returns></returns>
        public TextAreaDescriptor AsTextArea()
        {
            TextAreaDescriptor tag = new TextAreaDescriptor(_modelType, _key);

            tag.DataType           = _dataType;
            _attributes[this._key] = tag;
            return(tag);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 public static TextAreaDescriptor AsCodeEditor(this TextAreaDescriptor textArea)
 {
     return(textArea.SetTemplate("TemplateContent"));
 }