/// <summary> /// Makes the progress bar vertical and whether it starts from bottom or not. /// </summary> /// <param name="progressBarBase">The progress bar instance that this method extends.</param> /// <param name="bottom">Sets whether progress bar should start from bottom or not.</param> /// <returns>Current component.</returns> public static ProgressBarBase Vertical(this ProgressBarBase progressBarBase, bool bottom = true) { progressBarBase.Core.Properties.Add("IsVertival", true); progressBarBase.AddCssClass(string.Format("{0}-vertical", progressBarBase.GetBaseClass())); if (bottom) { progressBarBase.AddCssClass(string.Format("{0}-bottom", progressBarBase.GetBaseClass())); } return(progressBarBase); }
/// <summary> /// Makes the progress bar to start from right side. /// </summary> /// <param name="progressBarBase">The progress bar instance that this method extends.</param> /// <returns>Current component.</returns> public static ProgressBarBase Right(this ProgressBarBase progressBarBase) { progressBarBase.AddCssClass(string.Format("{0}-right", progressBarBase.GetBaseClass())); return(progressBarBase); }
/// <summary> /// Adds border to the progress bar. /// </summary> /// <param name="progressBarBase">The progress bar instance that this method extends.</param> /// <returns>Current component.</returns> public static ProgressBarBase Border(this ProgressBarBase progressBarBase) { progressBarBase.AddCssClass(string.Format("{0}-bordered", progressBarBase.GetBaseClass())); return(progressBarBase); }