Example #1
0
        /// <summary>
        /// 下拉框
        /// </summary>
        /// <returns></returns>
        public DropDownListDescriptor AsDropDownList()
        {
            DropDownListDescriptor tag = new DropDownListDescriptor(_modelType, _key);

            tag.DataType           = _dataType;
            _attributes[this._key] = tag;
            return(tag);
        }
Example #2
0
        /// <summary>
        /// 下拉框
        /// </summary>
        /// <returns></returns>
        public DropDownListDescriptor AsDropDownList()
        {
            DropDownListDescriptor tag = new DropDownListDescriptor(_modelType, _key);

            if (_attributes.ContainsKey(this._key))
            {
                _attributes.Remove(this._key);
            }
            tag.DataType = _dataType;
            _attributes.Add(this._key, tag);
            return(tag);
        }
Example #3
0
 public static DropDownListDescriptor AsWidgetTemplateChooser(this DropDownListDescriptor drop)
 {
     return(drop.SetTemplate("TemplateChooser").Required());
 }