Mastering KnockoutJS : use and extend Knockout to deliver feature-rich, modern web applications /
If you are an experienced JavaScript developer who is looking for new tools to build web applications and get an understanding of core elements and applications, this is the book for you. A basic knowledge of DOM, JavaScript, and KnockoutJS is assumed.
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
[2014]
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Knockout Essentials; The environment setup; Looking at the samples; JavaScript's compatibility; An overview of Knockout; Observables; Observable arrays; Computed observables; Writable computed observables; Pure computed observables; Manual subscriptions; Defining viewmodels; The this and self keywords; Problems with prototypes; Serializing viewmodels; The data-bind syntax; Binding with nested properties; Binding against functions; Binding with expressions.
- Binding with function expressionsUsing parentheses in bindings; Debugging with ko.toJSON; Control flow bindings; The if binding; The with binding; The foreach binding; Template binding; Reusable templates; Recursive templates; Dynamic templates; Containerless control flow; Extenders; Simple extenders; Extenders with options; Extenders that replace the target; The Contacts List application; Overview; The contact model; The Contacts page viewmodel; A philosophical note on a model versus a viewmodel; Mock data service; The view; The edit form; Contacts list; Summary.
- Chapter 2: Extending Knockout with Custom Binding HandlersThe data binding pattern; Components of a binding handler; Using custom binding handlers; Simple binding handlers; Animated binding handlers; Working with third-party controls; Modifying the DOM with bindings; Applying new bindings to new children elements; Applying accessors; Controlling the order of binding handlers; Advanced binding handlers; Binding complex data with charts; Dynamically adjusting the chart type; Exposing APIs through bindings; Binding contexts and descendant bindings; Controlling descendant bindings.
- Child binding contextsExtending binding contexts; Setting a new root context; Containerless syntax with custom bindings; Using the virtual elements API; Summary; Chapter 3: Extending Knockout with Preprocessors and Providers; Binding the handler preprocessing; Creating preprocessors; The uppercase preprocessor; Wrapping existing bindings; Node preprocessors; Closing virtual template nodes; Supporting alternate syntaxes; Multiple syntaxes; Binding providers; Custom binding providers; Knockout punches; Embedded text bindings; Namespaced bindings; Dynamic namespaced bindings; Binding filters.
- Writing custom filtersFilters on other bindings; Adding additional preprocessors; Summary; Chapter 4: Application Development with Components and Modules; RequireJS
- AMD viewmodels; An overview of RequireJS; Asynchronous Module Definitions; Starting RequireJS; Configuration; Starting the app; The text plugin; Components; The basic component registration; Custom elements in IE 8 and higher; Template registration; The element ID; The element instance; An array of DOM nodes; Document fragments; HTML strings; Registering templates using the AMD module; The viewmodel registration.