Creating a widget to display a slideshow
In the previous widget, we did not make use of callbacks. Most of the widgets require some type of custom callbacks. They provide more control to users and allow users to interact with the widget; for example, the built-in dialog. It provides options such as open, close, create, drag, and so on, which can be used to add dynamic behavior to the widget. Therefore, for our second widget, we will create the widget options as well as a callback. This will help you to understand widgets more thoroughly.
We will address this problem in our second widget, where we will convert a list of elements into slideshow. We will allow users to customize the widget by providing options to set the duration of a slide, the effect ...
Get Mastering jQuery UI now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.