售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
SproutCore Web Application Development
Table of Contents
SproutCore Web Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Introducing SproutCore
Understanding the SproutCore approach
Knowing when SproutCore is the right choice
Building your first SproutCore application
Installing SproutCore
Installing Ruby
Installing the SproutCore gem
Creating a project
Adding an app to the project
Designing your user interface
Modeling your data
Connecting it all together
Working with user input
Summary
2. The Runtime Environment
Building on SproutCore's object model
Using mixins to share functionality
Working with properties and computed properties
Observing properties for instant updates
Binding properties for error-free consistency
Working with enumerables
SC.Array
SC.Set
Observing enumerables
Observing properties on enumerable items
Understanding the run loop
Summary
3. The View Layer
MVC in SproutCore
Understanding the View layer
Becoming familiar with SC.View and SC.Pane
Organizing panes using SC.Page
Laying out views
Adjusting the layout
Animating the layout
Styling views
Rendering custom views
Updating custom views
Responding to user events in custom views
Summary
4. The Model Layer
Understanding the Model and Data Interface layers
Introducing the data store
Defining your data model
Creating custom attribute properties
Defining record relationships
Following the life cycle of SC.Record
Loaded records (READY_CLEAN)
Unloaded records (EMPTY)
To be read records (BUSY_LOADING and BUSY_REFRESH)
To be created records (READY_NEW)
To be updated records (READY_DIRTY)
To be destroyed records (DESTROYED_DIRTY)
Querying the store
Synchronizing data with a remote data source
Implementing remote data source adaptors
Reading records
Creating, updating, and destroying records
Summary
5. The Controller Layer
Understanding the Controller and Application State layers
Working with SproutCore's controllers
SC.ArrayController
SC.TreeController
Designing with statecharts
Avoiding pitfalls with statecharts
Coding with statecharts
Summary
6. Testing, Building, and Deploying
Unit testing SproutCore apps
Viewing unit test results
Using frameworks and modules
Building and deploying apps
Additional configuration options
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜