Giter VIP home page Giter VIP logo

opten.web.mvc's Introduction

ARCHIVED

This repository is archived and no longer maintained. Please use https://dev.azure.com/optenag/_git/Opten.Core with the Opten.AspNetCore project instead.

OPTEN Web Mvc

Our OPTEN MVC Library

Binders

There is a SwissDateTimeBinder to parse a swiss date to a C# DateTime.

ModelBinders.Binders.Add(typeof(DateTime), new SwissDateTimeBinder());
ModelBinders.Binders.Add(typeof(DateTime?), new SwissDateTimeBinder());

And a CurrencyDecimalBinder to parse strings (Html.TextBoxFor()) like 1'000 or 2'000'500.25 to a decimal.

ModelBinders.Binders.Add(typeof(decimal), new CurrencyDecimalBinder());
ModelBinders.Binders.Add(typeof(decimal?), new CurrencyDecimalBinder());

IRenderer

RazorViewRenderer converts a .cshtml and model to a string which can be used to send it as an e-mail body or anything else :-)!

URL Helpers

There are URL Helpers to get current url or other things.

@Url.Current()

TODO: Describe

HTML Helpers

There are HTLM Helpers to make your life easier.

@Html.If(test, "Ja", "Nein")

@Html.If(Model != null, () => Model.Name)

@Html.Frank("\n") => <br/>

Bootstrap Helpers

There are a lot of Bootstrap helpers to generate HTML like <input class="form-control" /> or <textarea rows="4" class="form-control" /> with Bootstrap classes.

TODO: Describe also BootstrapMessageHelper and BootstrapValidationHelper

opten.web.mvc's People

Contributors

cfr-op10 avatar severindheureuse avatar waldvmar avatar

Watchers

 avatar  avatar  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.