- Mastering KnockoutJS
- Timothy Moran
- 209字
- 2021-08-05 17:13:13
Chapter 2. Extending Knockout with Custom Binding Handlers
Knockout's standard bindings are great. They solve most of the general problems you are likely to encounter when developing web apps. But there is always the need to provide something special, whether you are working on your own library or just trying to add a bit of style to your app. When that happens, you will want to provide that functionality through the same binding system you are using everywhere else. Luckily, Knockout makes extending this system easy. In this chapter, we will be looking at how to make our own binding handlers. We will be covering the following topics:
- What a binding handler contains
- Creating new binding handlers
- Using custom binding handlers to integrate with third-party libraries
- Managing binding contexts
- Using the containerless control flow syntax with custom bindings
Creating custom binding handlers for new and more complex HTML interactions is a key to developing feature-rich applications. While the basics are easy to learn, there are enough extension points to support just about any use case. We are going to be looking at plenty of examples to get a solid idea of what binding handlers are capable of and how we can make the best use of them.
- Java EE 6 企業(yè)級(jí)應(yīng)用開(kāi)發(fā)教程
- CockroachDB權(quán)威指南
- PyTorch自動(dòng)駕駛視覺(jué)感知算法實(shí)戰(zhàn)
- Django開(kāi)發(fā)從入門到實(shí)踐
- oreilly精品圖書:軟件開(kāi)發(fā)者路線圖叢書(共8冊(cè))
- Object-Oriented JavaScript(Second Edition)
- Python貝葉斯分析(第2版)
- Building an RPG with Unity 2018
- AppInventor實(shí)踐教程:Android智能應(yīng)用開(kāi)發(fā)前傳
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- Python預(yù)測(cè)分析與機(jī)器學(xué)習(xí)
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通
- The C++ Workshop
- 零基礎(chǔ)學(xué)算法(第4版)
- HTML5 for Flash Developers