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); }
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); }
public ProgressBar SetAppearance(ProgressBarAppearanceType appearance) { Appearance = appearance ?? ProgressBarAppearanceType.Success; return this; }