Bootstrap for ASP.NET MVC.
Bootstrap, a leading open source frontend framework, takes care of typography, form layouts, and user interface components, allowing a developer to focus on writing code. Integrating ASP.NET's powerful components can further enhance its capabilities. This book guides you through the process of...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Packt Publishing,
2014.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with ASP.NET MVC and Bootstrap; The Bootstrap distribution; Bootstrap style sheets (the css folder); Bootstrap fonts (the fonts folder); Bootstrap JavaScript files (the js folder); The Bootstrap folder structure; Using Bootstrap with a site created with the standard Visual Studio project template; Examining the default MVC project layout; The Content folder; The fonts folder; The Scripts folder.
- Creating an empty ASP.NET MVC site and adding Bootstrap manuallyAdding the Bootstrap style sheets; Adding the Bootstrap fonts; Adding the Bootstrap JavaScript files; Creating the site Layout file; Creating a home controller with a Bootstrap-themed view; Adding Bootstrap files using NuGet; Adding the Bootstrap NuGet package using the dialog; Adding the Bootstrap NuGet package using the Package Manager Console; Improving your site performance with bundling and minification; Adding bundling to your Bootstrap project; Including bundles in your ASP.NET layout; Testing bundling and minification.
- BreadcrumbPagination; Input groups; Button dropdowns; Alerts; Progress bars; The basic progress bar; Contextual progress bars; Striped and animated progress bars; Dynamically updating the progress bar's percentage; Summary; Chapter 4: Using Bootstrap JavaScript Plugins; Data attributes versus the programmatic API; Cascading dropdowns; Modal dialogs; Tabs; Tooltips; Popovers; The accordion component; The carousel component; Summary; Chapter 5: Creating ASP.NET MVC Bootstrap Helpers; Built-in HTML helpers; Creating a custom helper; Using a helper in a view; Creating helpers using static methods.
- Using the static method helper in a viewCreating helpers using extension methods; Using the extension method helper in a view; Creating fluent HTML helpers; Using the fluent HTML helper in a view; Creating self-closing helpers; Using the self-closing helper in a view; Summary; Chapter 6: Creating T4 Templates to Scaffold Bootstrap Views; An overview of scaffolding; T4 templates; T4 tools; The T4 syntax; Customizing the generated code for controllers; Customizing the generated code for views; Creating a custom scaffolder extension; Summary.