14
jQuery UI

JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Embed Size (px)

Citation preview

Page 1: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

jQuery UI

Page 2: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 2

Introduction From the jQuery UI Home Page jQuery UI is a curated set of user

interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.

Page 3: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 3

Referencing The steps to reference the jQuery UI

library is the same as the steps to get jQuery

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

Page 4: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 4

Widgets There are many widgets but we will only

cover a few Accordion Autocomplete DatePicker Menu Tabs

Page 5: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 5

The Accordion Widget (Introduction) Displays collapsible content

Use to conserve screen real estate To implement, use pairs of headers and

content panels

https://jqueryui.com/accordion/

Page 6: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 6

The AutoComplete Widget (Introduction) Use with an input widget to enable auto

completion features Set the source to a list of possible strings

Page 7: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 7

The DatePicker Widget (Introduction) Use to create a selectable calendar It’s possible to set the minimum and

maximum selectable values It’s possible to change the format of the

calendar http://api.jqueryui.com/datepicker/

Page 8: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 8

The DatePicker Widget (Default)

Page 9: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 9

The DatePicker Widget (Configuring)

Page 10: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 10

The Menu Widget A menu can be created from any valid

markup as long as the elements have a strict parent/child relationship. The most commonly used element is the unordered list (<ul>)

Page 11: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 11

The Menu Widget Create a menu using a list

Page 12: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 12

The Tabs widget Create content that appears on multiple

tabs The tabs themselves must be in either

an ordered (<ol>) or unordered (<ul>) list Each tab "title" must be inside of a list

item (<li>) and wrapped by an anchor (<a>) with an href attribute

Each tab panel may be any valid element but it must have an id which corresponds to the hash in the anchor of the associated tab

Page 13: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 13

The Tabs Widget

Page 14: JQuery UI. Slide 2 Introduction From the jQuery UI Home Page jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built

Slide 14

The ToolTips Widget xx