
- 432 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Web Components in Action
About this book
Summary Web Components are a standardized way to build reusable custom elements for web pages and applications using HTML, CSS, and JavaScript. A Web Component is well-encapsulated, keeping its internal structure separate from other page elements so they don't collide with the rest of your code. In Web Components in Action you'll learn to design, build, and deploy reusable Web Components from scratch.Foreword by Gray Norton.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology The right UI can set your sites and web applications apart from the ordinary. Using the Web Components API, you can build Custom Elements and then add them to your pages with just a simple HTML tag. This standards-based design approach gives you complete control over the style and behavior of your components and makes them radically easier to build, share, and reuse between projects. About the Book Web Components in Action teaches you to build and use Web Components from the ground up. You'll start with simple components and component-based applications, using JavaScript, HTML, and CSS. Then, you'll customize them and apply best design practices to maximize reusability. Through hands-on projects, you'll learn to build production-ready Web Components for any project, including color pickers, advanced applications using 3D models, mixed reality, and machine learning. What's inside
- Creating reusable Custom Elements without a framework
- Using the Shadow DOM for ultimate component encapsulation
- Leveraging newer JS features to organize and reuse code
- Fallback strategies for using Web Components on older browsers
About the Reader Written for web developers experienced with HTML, CSS, and JavaScript. About the Author Ben Farrell is a Senior Experience Developer at Adobe working on the Adobe Design Prototyping Team. Table of Contents
PART 1 - FIRST STEPS
- The framework without a framework
- Your first Web Component
- Making your component reuseable
- The component lifecycle
- Instrumenting a better web app through modules
PART 2 - WAYS TO IMPROVE YOUR COMPONENT WORKFLOW
- Markup Managed
- Templating your content with HTML
- The Shadow DOM
- Shadow CSS
- Shadow CSS rough edges
PART 3 - PUTTING YOUR COMPONENTS TOGETHER
- A real-world UI component
- Building and supporting older browsers
- Component testing
- Events and application data flow
- Hiding your complexities
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
Table of contents
- Copyright
- Brief Table of Contents
- Table of Contents
- Foreword
- Preface
- Acknowledgments
- About this book
- About the cover illustration
- Part 1. First steps
- Part 2. Ways to improve your component workflow
- Part 3. Putting your components together
- Appendix. ES2015 for Web Components
- Index
- List of Figures
- List of Tables
- List of Listings
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app