예제 #1
0
 public ProgressBar(int value, ProgressBarAppearanceType appearance = null, bool striped = false, bool animated = false, string clientId = null)
     : base("_ProgressBar", clientId)
 {
     SetAppearance(appearance);
     SetStriped(striped);
     SetAnimated(animated);
     SetValue(value);
 }
예제 #2
0
 public static MvcHtmlString UxProgressBar(this HtmlHelper helper, int value, ProgressBarAppearanceType appearance = null, bool striped = false, bool animated = false, string clientId = null)
 {
     var progressBar = new ProgressBar(value, appearance, striped, animated, clientId);
     return helper.RenderUxControl(progressBar);
 }
예제 #3
0
 public ProgressBar SetAppearance(ProgressBarAppearanceType appearance)
 {
     Appearance = appearance ?? ProgressBarAppearanceType.Success;
     return this;
 }