Exemplo n.º 1
0
 /// <summary>
 ///   Creates a Bootstrap date time picker control with default datetime picker
 ///   options. See also <see cref="M:BootstrapConstants.DateTimePickerOptions" /> to
 ///   set default options.
 /// </summary>
 /// <typeparam name="TModel">Type to be scanned</typeparam>
 /// <typeparam name="TValue">Property to be scanned</typeparam>
 /// <param name="html">HtmlHelper extension</param>
 /// <param name="expression">The property lamba expression</param>
 /// <param name="htmlAttributes">Extra HTML attributes to be applied to the text box</param>
 /// <returns>A Bootstrap date time picker control</returns>
 public static IExtendedHtmlString DateTimeTextBoxFor <TModel, TValue>(this HtmlHelpers <TModel> html,
                                                                       Expression <Func <TModel, TValue> > expression,
                                                                       object htmlAttributes)
 {
     return(html.DateTimeTextBoxFor(expression, BootstrapSettings.DateTimePickerOptions, htmlAttributes));
 }