jQuery UI 1.6 The User Interface Library for jQuery phần 10

Hoặc này có thể được một số nguyên để đại diện cho số mili giây cho các hình ảnh động mới nhất của Canon, hoặc sử dụng một trong các dây chậm, bình thường, hoặc như các thành phần khác của thư viện, thay đổi kích thước xác định một lựa chọn | Sorting You should find when you run the page that you can move the boxes around close your browser run the page again and see the boxes retain the order that you gave them Please note that that example does not run correctly in Opera and exhibits the same unusual placement of sorted items that occurred in some of the earlier connected-list examples in the chapter. 372 Chapter 11 Summary We ve finished off our tour of the interaction components of the library by looking at the sortables component. Like the other modules that we looked at before it has a wide range of properties and methods that allow us to configure and control its behavior and appearance in both simple and more complex implementations. We started the chapter off with a look at a simple default implementation with no configuration to see the most basic level of functionality added by the component. We looked at some of the different elements that can be made sortable and added some basic styling to the page. Following this we looked at the range of configurable properties that are exposed by the sortable API. The list is extensive and provides a wide range of functionality that can be enabled or disabled with ease. We moved on to look at the extensive event model used by this component which gives us the ability to react to different events as they occur in any sort operation initiated by the visitor. Connected lists offer the ability to be able to exchange sortable items giving our visitors the ability to move items between separate lists. We saw the additional properties and events that are used specifically with connected sortable lists. In the last part of the chapter we looked at the methods available for use with the sortables component and focused on the highly useful serialize method and also had a quick look at its compatibility with other members of the jQuery UI library in the form of the sortable tabs example. 373

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.