Exemplo n.º 1
0
 /// <summary>
 /// 配置日期选择框
 /// </summary>
 private void ConfigDatePicker(TagBuilder builder)
 {
     if (_config.IsDatePicker == false)
     {
         return;
     }
     builder.AddAttribute("[width]", _config.GetValue(UiConst.Width));
     builder.AddAttribute("startView", _config.GetValue <DateView?>(MaterialConst.StartView)?.Description());
     builder.AddAttribute("[touchUi]", _config.GetBoolValue(MaterialConst.TouchUi));
     builder.AddAttribute("minDate", _config.GetValue(MaterialConst.MinDate));
     builder.AddAttribute("maxDate", _config.GetValue(MaterialConst.MaxDate));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 配置只读
 /// </summary>
 private void ConfigReadOnly(TagBuilder builder)
 {
     builder.AddAttribute("[readonly]", _config.GetBoolValue(UiConst.ReadOnly));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 配置显示时间
 /// </summary>
 private void ConfigShowTime(TagBuilder builder)
 {
     builder.AddAttribute("showTime", _config.GetBoolValue(UiConst.ShowTime));
 }