Cover image for Backbone.js Cookbook.
Backbone.js Cookbook.
Title:
Backbone.js Cookbook.
Author:
Mirgorod, Vadim.
ISBN:
9781782162735
Personal Author:
Physical Description:
1 online resource (336 pages)
Contents:
Backbone.js Cookbook -- Table of Contents -- Backbone.js Cookbook -- Credits -- About the Author -- Acknowledgement -- 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. Understanding Backbone -- Introduction -- Designing an application with the MVC pattern -- How to do it... -- Defining business logic with models and collections -- How to do it... -- How it works... -- See also -- Modeling an application's behavior with views and a router -- How to do it... -- How it works... -- See also -- Creating an application structure from scratch -- How to do it... -- Writing your first Backbone application -- How to do it... -- See also -- Implementing URL routing in your application -- How to do it... -- How it works... -- There's more... -- Parsing parameters in a URL -- See also -- Extending an application with plugins -- How to do it... -- See also -- Contributing to the Backbone project -- How to do it... -- 2. Models -- Introduction -- Creating a model -- How to do it... -- There's more... -- Cloning a model -- Setting default attribute values -- Setting default attribute values with a multiline expression -- See also -- Operating with model attributes -- How to do it... -- How it works... -- There's more… -- Checking if a model has an attribute -- Getting HTML escaped attribute value -- Operating with the model identifier -- How to do it... -- How it works... -- There's more... -- Validating model attributes -- How to do it... -- How it works... -- There's more... -- Handling validation errors -- Triggering validation manually -- See also.

Overriding getters and setters -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding getter and setter of an existing attribute -- Handling mutators events -- See also -- Creating undo points to store/restore a model's state -- Getting ready -- How to do it... -- How it works... -- There's more... -- Working with the Memento stack -- Restoring from the first state in the stack -- Ignoring attributes from being restored -- Working with collections -- See also -- Implementing workflow for a model -- Getting ready -- How to do it... -- How it works... -- There's more... -- Binding callbacks to transition events -- See also -- Using advanced validation in a model -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using built-in validators -- See also -- Validating an HTML form -- Getting ready -- How to do it... -- How it works... -- There's more... -- Working with nested attributes in a model -- Getting ready -- How to do it... -- How it works... -- There's more... -- Working with a nested array of attributes -- Adding/removing elements to/from a nested array -- Binding callbacks to an events -- See also -- Implementing a one-to-one relationship -- Getting ready -- How to do it... -- How it works... -- See also -- 3. Collections -- Introduction -- Creating a collection of models -- How to do it... -- How it works... -- There's more... -- Getting a model from a collection by its index -- How to do it... -- How it works... -- There's more... -- Getting an index of a collection model -- Getting an independent copy of a model -- Getting the length of a collection -- Getting a model from a collection by its ID -- How to do it... -- How it works... -- See also -- Adding a model to a collection -- How to do it... -- How it works... -- There's more... -- Adding a model at a specific position.

Adding multiple models -- Adding existing models -- See also -- Removing a model from a collection -- How to do it... -- How it works... -- There's more... -- Working with a collection as a stack or as a queue -- How to do it... -- How it works... -- Sorting a collection -- How to do it... -- How it works... -- There's more... -- Comparing a pair of models in the comparator -- See also -- Filtering models in a collection -- How to do it... -- See also -- Iterating through a collection -- How to do it... -- How it works... -- There's more... -- Checking every model to match a specific condition -- Checking any model to match a specific condition -- Getting the attribute from each model in a collection -- Performing specific calculations to each model in a collection -- Boiling down models in a collection into a single value -- See also -- Chaining a collection -- How to do it… -- How it works... -- See also -- Running No SQL queries on a collection -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using standard operators -- equal -- ne -- in -- nin -- exists or has -- Combining queries -- and -- or -- nor -- not -- Multiple queries on the same key -- Sorting query results -- Paging query results -- Caching results -- See also -- Storing models of various types in the same collection -- Getting ready -- How to do it... -- How it works... -- There's more... -- Mapping deeply nested attributes -- Use a function to map the models -- Implementing a one-to-many relationship -- Getting ready -- How to do it... -- How it works... -- There's more... -- Implementing a many-to-many relationship -- Exporting related models to JSON -- See also -- 4. Views -- Introduction -- Rendering a view -- How to do it... -- How it works... -- There's more... -- Creating a new HTML element associated with a view.

Changing the view element dynamically -- Removing a view -- See also -- Dealing with a view element using jQuery -- How to do it... -- How it works... -- There's more... -- Using Zepto as a faster alternative to jQuery -- See also -- Rendering a model in a view -- How to do it... -- How it works... -- See also -- Rendering a collection in a view -- How to do it... -- How it works... -- See also -- Splitting a view into subviews -- How to do it... -- How it works... -- Handling Document Object Model (DOM) events in a view -- How to do it... -- How it works... -- There's more... -- Delegating and undelegating events manually -- See also... -- Switching views using Backbone.Router -- How to do it... -- How it works... -- See also -- 5. Events and Bindings -- Introduction -- Managing events in Backbone.js -- How to do it... -- How it works... -- There's more... -- Unbinding callback from the event -- Listening to events on other objects -- Handling events of Backbone objects -- How to do it... -- There's more... -- Avoiding event triggering when working with Backbone objects -- Using built-in events -- See also -- Binding a model to a view -- How to do it... -- How it works... -- Binding a collection to a view -- How to do it... -- How it works... -- Bidirectional binding with Backbone.stickit -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding model getters and setters -- Overriding view element updates -- Listening to a specific HTML event -- See also -- Binding a model and a collection to a select list -- Getting ready -- How to do it... -- How it works... -- See also -- Handling keyboard shortcuts in a view -- Getting ready -- How to do it... -- How it works... -- See also -- Handling router events -- How to do it... -- How it works... -- There's more... -- See also -- 6. Templates and UX sugar -- Introduction.

Using templates in a view -- How to do it... -- How it works... -- There's more... -- Splitting a template into partials -- See also -- Implementing a template loader -- How to do it... -- How it works... -- Using Mustache templates -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using compiled templates -- Using partials -- See also -- Defining a form -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using a form without a model -- See also -- Adding validation to a form -- How to do it... -- How it works... -- There's more... -- Customizing error messages -- Performing a model validation -- See also -- Handling form events -- How to do it... -- How it works... -- See also -- Customizing a form with the Bootstrap framework -- Getting ready -- How to do it... -- How it works... -- There's more... -- Overriding form templates -- See also -- Assembling layouts with LayoutManager -- Getting ready -- How to do it... -- How it works... -- See also -- Building a semantic and an easily styleable data grid -- Getting ready -- How to do it... -- How it works... -- There's more... -- Performing bulk operations on grid models -- Performing records filtering -- See also -- Drawing on the HTML5 canvas -- Getting ready -- How to do it... -- How it works... -- See also -- 7. REST and Storage -- Introduction -- Architecting the REST API for the backend -- How to do it... -- How it works... -- Prototyping a RESTful backend with MongoLab -- Getting ready... -- How to do it... -- How it works... -- See also -- Synchronizing models and collections with a RESTful service -- How to do it... -- How it works... -- There's more... -- Handling MongoDB Extended JSON -- See also -- Building a RESTful frontend with Backbone -- Getting ready... -- How to do it... -- How it works... -- See also.

Using the polling technique to fetch data.
Abstract:
Written in a friendly, example driven Beginner's Guide format, there are plenty of step-by-step instructions to get you started fast!Pentaho 4.0 By Example: Beginner's Guide is the ideal companion for a wide-variety of developers. Whether you are new to the world of Business Intelligence reporting, or an experienced BI analyst, this book will guide you through the creation of your first reports in Pentaho. We assume some knowledge of the SQL language and database systems.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Electronic Access:
Click to View
Holds: Copies: