Exemple #1
0
        /// <summary>
        /// Changes the background color of the text box.
        /// </summary>
        /// <param name="textBoxBase">The text box instance that this method extends.</param>
        /// <param name="color">The value of the color.</param>
        /// <returns>Current component.</returns>
        public static TextBoxBase Background(this TextBoxBase textBoxBase, BootstrapColorBase color)
        {
            textBoxBase.AddCssClass(string.Format("bg-{0}", color));

            return(textBoxBase);
        }