Coder Social home page Coder Social logo

bootstrapeditortemplates's Introduction

EditorTemplates for Bootstrap 3

This project contains MVC EditorTemplates for Bootstrap 3. EditorTemplates are partial views that are rendered very easily, based on the type. EditorTemplates are installed in \Views\Shared\EditorTemplates, they are instantiated from a View like this (using Razor syntax):

@Html.EditorFor(m => m.BoolValue)
@Html.EditorFor(m => m.DateValue)
@Html.EditorFor(m => m.DecimalValue)
@Html.EditorFor(m => m.EnumValue)
@Html.EditorFor(m => m.FileValue)
@Html.EditorFor(m => m.FloatValue)
@Html.EditorFor(m => m.IntValue)
@Html.EditorFor(m => m.LongTextValue, "Multiline")
@Html.EditorFor(m => m.MarkdownValue, "Markdown")
@Html.EditorFor(m => m.PasswordValue, "Password")
@Html.EditorFor(m => m.StringValue)
@Html.EditorFor(m => m.TimeSpanValue)

These templates offer basic controls like String and Decimal, and also some advanced controls that are not part of the standard bootstrap distribution. These are:

Because the controls templates are delivered as Razor views, they can be easily modified and adapted to your needs. By default, they render a complete control group, including label and inline error text. These EditorTemplates are aware of your globalization settings and support unobtrusive validation. Two web.config setting are added to specify the server-side culture and timezone. These settings are also used client-side from javascript, using the jQuery.Globalize dependency and some custom javascript.

bootstrapeditortemplates's People

Contributors

maarten88 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.