コード例 #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 FormTextBoxBase Background(this FormTextBoxBase textBoxBase, BootstrapColorBase color)
        {
            textBoxBase.AddCssClass(string.Format("bg-{0}", color));

            return(textBoxBase);
        }
コード例 #2
0
 /// <summary>
 /// Returns an input icon component.
 /// </summary>
 /// <param name="formGroup">The form group instance that this method extends.</param>
 /// <param name="textBox">The text box component of input icon.</param>
 /// <returns>An input icon component.</returns>
 public static YimaFormInputIcon InputIcon(this IFormGroup formGroup, FormTextBoxBase textBox)
 {
     return(new YimaFormInputIcon(formGroup, textBox));
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the component with the specified form group and text box.
 /// </summary>
 /// <param name="formGroup">The form group.</param>
 /// <param name="textBox">The text box.</param>
 public YimaFormInputIcon(IFormGroup formGroup, FormTextBoxBase textBox) : base(formGroup)
 {
     Init(textBox);
 }
コード例 #4
0
 /// <summary>
 /// Returns an input icon component.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper instance that this method extends.</param>
 /// <param name="textBox">The text box component of input icon.</param>
 /// <returns>An input icon component.</returns>
 public static YimaInputIcon YimaInputIcon(this HtmlHelper htmlHelper, FormTextBoxBase textBox)
 {
     return(new YimaInputIcon(htmlHelper, textBox));
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the component with the specified form and text box.
 /// </summary>
 /// <param name="form">The form.</param>
 /// <param name="textBox">The text box.</param>
 public YimaFormInputIcon(IForm form, FormTextBoxBase textBox) : base(form)
 {
     Init(textBox);
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the component with the specified HTML helper and text box.
 /// </summary>
 /// <param name="htmlHelper">The HTML helper.</param>
 /// <param name="textBox">The text box.</param>
 public YimaInputIcon(HtmlHelper htmlHelper, FormTextBoxBase textBox) : base(htmlHelper)
 {
     Init(textBox);
 }