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

  • jQuery UI Cookbook
  • Adam Boduch
  • 180字
  • 2021-08-13 16:40:48

Introduction

In this chapter, we will explore the various ways in which we can extend the accordion widget to accommodate a number of scenarios. The accordion widget offers a lot of out-of-the-box functionality. For example, without any configuration, we get a themed container widget that groups contents into sections.

We'll focus on use cases that shed light on the inner workings of the accordion widget. Keyboard events are one way to navigate the page, and we can enhance the accordion's support for these events. Some magic happens behind the scene to come up with each section's height, when expanded. We'll see how we can work with these configurations, especially when the section height changes on the fly.

Also on the topic of height, we can let the user control the height of individual sections, or, from a theme perspective, we can control the space between the accordion components. Finally, we'll look at some of the more advanced accordion usage where we give the user the freedom to sort their accordion sections and to drag sections from one accordion to another.

主站蜘蛛池模板: 安多县| 叙永县| 新安县| 商洛市| 扎赉特旗| 孟州市| 晋江市| 高邮市| 合阳县| 海林市| 威信县| 榆树市| 特克斯县| 巧家县| 闽侯县| 措勤县| 绍兴市| 东明县| 洛隆县| 耒阳市| 浦县| 江华| 睢宁县| 寻甸| 蒙城县| 竹山县| 金川县| 青神县| 岐山县| 广饶县| 芦溪县| 海宁市| 鄂尔多斯市| 大城县| 腾冲县| 进贤县| 馆陶县| 繁峙县| 南郑县| 九江县| 桑日县|