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

  • 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.

主站蜘蛛池模板: 阿勒泰市| 家居| 拉萨市| 涟源市| 潜江市| 揭阳市| 大新县| 华容县| 顺昌县| 安平县| 泸水县| 平昌县| 江孜县| 沙洋县| 林州市| 如东县| 安康市| 开封市| 香格里拉县| 白城市| 格尔木市| 清新县| 七台河市| 内丘县| 当阳市| 科技| 九江市| 建水县| 丁青县| 当雄县| 延长县| 柳河县| 塔河县| 巴林右旗| 房山区| 洪泽县| 巫山县| 彭水| 蒙城县| 九龙县| 腾冲县|