官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 连城县| 博罗县| 肃宁县| 长春市| 辽阳市| 隆德县| 蓬安县| 突泉县| 北川| 宁德市| 河源市| 五峰| 普宁市| 潍坊市| 张北县| 乌海市| 浦东新区| 沧州市| 息烽县| 云安县| 彩票| 阿克陶县| 大冶市| 兴义市| 瑞昌市| 盱眙县| 巴林右旗| 西安市| 容城县| 濉溪县| 武鸣县| 林芝县| 青神县| 镇江市| 大丰市| 东山县| 右玉县| 平泉县| 河东区| 盐源县| 尚志市|