没有合适的资源?快使用搜索试试~ 我知道了~
首页Developing Web Components 无水印原版pdf
Developing Web Components 无水印原版pdf
需积分: 9 55 浏览量
更新于2023-05-27
评论
收藏 2.31MB PDF 举报
Developing Web Components 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
资源详情
资源评论
资源推荐

WEB PROGRAMMING
Developing Web Components
ISBN: 978-1-491-94902-3
US $29.99 CAN $34.99
“
With this book, Jarrod
and Jason make web
components accessible
to a large number of
developers. The sections
on custom elements
and shadow DOM
will help solidify your
understanding of new
web platform features
for composition and
encapsulation, helping
you build more robust
components and apps.
”
—Addy Osmani
engineer focusing on Chrome
and Polymer at Google
“
I'm really excited that
Jarrod and Jason have put
together this book to help
guide new developers and
get them started down the
path of componentizing
the Web!
”
—Rob Dodson
Developer Advocate at Google
Twitter: @oreillymedia
facebook.com/oreilly
Although web components are still on the bleeding edge—barely
supported in modern browsers—the technology is also moving extremely
fast. This practical guide gets you up to speed on the concepts underlying
W3C’s emerging standard and shows you how to build custom, reusable
HTML5 Web Components.
Regardless of your experience with libraries such as jQuery and Polymer,
this book teaches JavaScript developers the DOM manipulations these
libraries perform. You’ll learn how to build a basic widget with vanilla
JavaScript and then convert it into a web component that’s semantic,
declarative, encapsulated, consumable, and maintainable. With custom
components, the Web can finally fulfill its potential as a natively extensible
application platform. This book gets you in at the right time.
■ Understand core concepts (such as normal ow and
positioning, and z-index) for properly positioning, dragging,
and resizing elements
■ Explore UI concepts and patterns typically abstracted away by
Dojo, jQuery UI, Kendo UI, and other libraries
■ Dive into the W3C standard and convert your working widget
example into a fully functioning web component
■ Learn how to encapsulate, package, and deploy your web
components with Google’s Polymer framework
Jarrod Overson has been developing on the Web for over 15 years for startups
and global companies alike. Currently at Shape Security, Jarrod is an active pro-
ponent and contributor to open source and JavaScript language tooling; he’s cre-
ated Plato and many other tools and libraries.
Jason Strimpel is a software engineer with over 15 years experience developing
web applications. He’s currently employed at WalmartLabs where he writes soft-
ware to support UI application development. Jason is also an active member of
the open source community managing projects such as LazoJS.

978-1-491-94902-3
[LSI]
Developing Web Components
by Jarrod Overson and Jason Strimpel
Copyright © 2015 Jarrod Overson and Jason Strimpel. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (
http://safaribooksonline.com). For more information, contact our corporate/
institutional sales department: 800-998-9938 or corporate@oreilly.com.
Editors: Simon St.Laurent and Brian Anderson
Production Editor: Colleen Lobner
Copyeditor: Rachel Head
Proofreader: Charles Roumeliotis
Indexer: Wendy Catalano
Interior Designer: David Futato
Cover Designer: Ellie Volckhausen
Illustrator: Rebecca Demarest
February 2015: First Edition
Revision History for the First Edition
2015-02-06: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781491949023 for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. Developing Web Components, the cover
image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.

Table of Contents
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1. Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Are Web Components? 2
HTML Templates 3
HTML Imports 3
Custom Elements 4
The Shadow DOM 4
Why Web Components? 4
Part I. UI Core Concepts
2. Creating a Solid Foundation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
The Importance of a DOM Abstraction Layer 11
API Design and Widget Life Cycle 12
The Inheritance Pattern 14
Dependencies 15
Optimization 16
A Web Component Is Not JavaScript Alone 17
Example Widget 18
The Voltron Widget Base Class 18
Dialog Class 20
Dialog CSS and HTML 21
Summary 22
3. Normal Flow and Positioning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Normal Flow 23
iii
剩余251页未读,继续阅读














安全验证
文档复制为VIP权益,开通VIP直接复制

评论0