SlideShare a Scribd company logo
Jquery UI Introduction




    Nguyen Thanh Trung - WD Team
                       07/12/2012
Objective




    What is jQuery UI?
    Explorer JqueryUI
    Jquery UI compare with the other (DOJO,YUI..)
    Demo




                                 2
What is Jquery UI




jQuery UI is a set of plug-ins for Jquery that add new functionalities to the Jquery core library




                                                 3
What is Jquery UI
History




                    4
Explorer Jquery UI

 Interactions

 Widgets

 Effects

 Utilities

 Theming




                     5
Explorer Jquery UI

                     Interactions



 Draggable
 Droppable
 Resizable
 Selectable
 Sortable




                         6
Explorer Jquery UI

                                              Draggable
$(selector).draggable(option)
<script>
     $(function() {
            $( "#draggable" ).draggable();
     });
</script>
<div class="demo">
     <div id="draggable" class="ui-widget-content">
            <p>Drag me around</p>
     </div>
</div><!-- End demo -->




                                                      7
Explorer Jquery UI

                                                    Droppable
$(selector).droppable(option)
<script>
     $(function() {
          $( "#draggable" ).draggable();
          $( "#droppable" ).droppable({
               drop: function( event, ui ) {
                    $( this ).addClass( "ui-state-highlight" ).find( "p" ).html( "Dropped!" );
               }
          });
     });
</script>
<div class="demo">
     <div id="draggable" class="ui-widget-content">
     <p>Drag me to my target</p>
</div>
<div id="droppable" class="ui-widget-header">
     <p>Drop here</p>
</div>



                                                           8
Explorer Jquery UI

                                                 Resizable
$(selector).resizable(option)
<script>
     $(function() {
           $( "#resizable" ).resizable();
     });
     </script>
<div class="demo">
<div id="resizable" class="ui-widget-content">
     <h3 class="ui-widget-header">Resizable</h3>
</div>
</div><!-- End demo -->




                                                    9
Explorer Jquery UI

                                                    Selectable
$(selector).selectable(option)
<script>
        $(function() {
              $( "#selectable" ).selectable();
        });
</script>


<ol id="selectable">
        <li class="ui-widget-content">Item 1</li>
        <li class="ui-widget-content">Item 2</li>
        <li class="ui-widget-content">Item 3</li>
</ol>


                                                       10
Explorer Jquery UI

                                              Sortable

 $(selector).sorttable(option)
 <script>
      $(function() {
           $( "#sortable" ).sortable();
           $( "#sortable" ).disableSelection();
      });
 </script>


 <ul id="sortable">
       <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li>
       <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li>
       <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li>
       …....
       <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li>
 </ul>



                                                  11
Explorer Jquery UI

                     Widgets
  Accordion
  Autocomplete
  Button
  Datepicker
  Dialog
  Progressbar
  Slider
  Tabs



                        12
Explorer Jquery UI

                                              Accordion

<script>
     $(function() {
          $( "#accordion" ).accordion();
     });
</script>

<div id="accordion">
     <h3><a href="#">Section 1</a></h3>
     <div>
          <p>
          Mauris mauris ante, blandit et, ultrices a,
          </p>
     </div>
     <h3><a href="#">Section 2</a></h3>
     <div>
          <p>
          Sed non urna. Donec et ante. Phasellus eu ligula.
          </p>
     </div>
</div>



                                                   13
Explorer Jquery UI

                                        Autocomplete

<script>
     $(function() {
          var availableTags = [
                "ActionScript",
                "AppleScript",
                "Asp",
                "BASIC",
                "C",
                …..,
                "Scheme"
          ];
          $( "#tags" ).autocomplete({
                source: availableTags
          });
     });
     </script>


<div class="ui-widget">
     <label for="tags">Tags: </label>
     <input id="tags">
</div>



                                            14
Explorer Jquery UI

                                                      Buttons

<script>
     $(function() {
          $( "input:submit, a, button").button();
          $( "a", ".demo" ).click(function() { return false; });
     });
</script>



<button>A button element</button>

<input value="A submit button" type="submit">

<a href="#">An anchor</a>




                                                          15
Explorer Jquery UI

                                               Datepicker


<script>
     $(function() {
            $( "#datepicker" ).datepicker();
     });
</script>
<div class="demo">
     <p>Date: <input id="datepicker" type="text"></p>
</div><!-- End demo -->




                                                   16
Explorer Jquery UI

                                                    dialog


<script>
     $(function() {
           $( "#dialog" ).dialog();
     });
     </script>
<div id="dialog" title="Basic dialog">
     <p>This is the default dialog which is useful for displaying
information. The dialog window can be moved, resized and
closed with the 'x' icon.</p>
</div>




                                                      17
Explorer Jquery UI

                                                Progressbar



<script>
     $(function() {
            $( "#progressbar" ).progressbar({
                  value: 37
            });
     });
</script>
<div id="progressbar"></div>




                                                    18
Explorer Jquery UI

                                       Slider



<script>
     $(function() {
            $( "#slider" ).slider();
     });
</script>
<div id="slider"></div>




                                        19
Explorer Jquery UI

                                                   Tabs
<script>
     $(function() {
           $( "#tabs" ).tabs();
     });
</script>
<div id="tabs">
     <ul>
           <li><a href="#tabs-1">Nunc tincidunt</a></li>
           <li><a href="#tabs-2">Proin dolor</a></li>
     </ul>
     <div id="tabs-1">
           <p>Proin elit arcu, rutrum commodo, vehicula
tempus, commodo a, risus. Curabitur nec arcu. </p>
     </div>
     <div id="tabs-2">
           <p>Proin elit arcu, rutrum commodo, vehicula
tempus, commodo a, risus. Curabitur nec arcu. </p>
     </div>
</div>

                                                    20
Explorer Jquery UI

                     Effects
 Color Animation
 Toggle Class
 Add Class
 Remove Class
 Switch Class
 Effect
 Toggle
 Hide
 Show


                        21
Explorer Jquery UI
                                          Effects
 ToggleClass : toggleClass( class, [duration] )
  Add Class : addClass( class, [duration] )
  RemoveClass: removeClass( [class], [duration] )
  SwitchClass : switchClass( remove, add, [duration] )
  Effect :   effect( effect, [options], [speed], [callback] )

  Toggle : toggle( effect, [options], [speed], [callback] )
  Hide: hide( effect, [options], [speed], [callback] )
  Show : show( effect, [options], [speed], [callback] )


                                                22
Explorer Jquery UI

                     Utilities



 Position
 Widget




                         23
Explorer Jquery UI

                            Theming




 Theming jQuery UI
 jQuery UI CSS Framework
 ThemeRoller application
 Theme Switcher Widget




                             24
Explorer Jquery UI

                               Theming Jquery UI



 There are three general approaches to theming jQuery UI plugins:


   - Download a ThemeRoller theme
   - Modify the CSS files
   - Write completely custom CSS




                                    25
Explorer Jquery UI

                       Jquery UI CSS Framework


  Layout Helpers
  Widget Containers
  Interaction States
  Interaction Cues
  Icons
  Misc Visuals



                                 26
Explorer Jquery UI

                           Layout Helpers




.ui-helper-hidden
.ui-helper-hidden-accessible
.ui-helper-reset
.ui-helper-clearfix
.ui-helper-zfix




                                27
Explorer Jquery UI

                     Widget Containers




.ui-widget
.ui-widget-header
.ui-widget-content




                            28
Explorer Jquery UI

                     Interaction States



 .ui-state-default
 .ui-state-hover
 .ui-state-focus
 .ui-state-active




                            29
Explorer Jquery UI

                         Interaction Cues



.ui-state-highlight
.ui-state-error
.ui-state-error-text
.ui-state-disabled
.ui-priority-primary
.ui-priority-secondary



                               30
Explorer Jquery UI

                                              Icons
- States and images
  .ui-icon

- Icon types
   .ui-icon-{icon type}-{icon sub description}-{direction}.
   Example :

   ui-icon-circle-triangle-e
   ui-icon-circle-triangle-s
   ui-icon-circle-triangle-w
   ui-icon-circle-triangle-n



                                                31
Explorer Jquery UI

                                          Misc Visuals



- Corner Radius helpers
 .ui-corner-tl, .ui-corner-tr, .ui-corner-bl, .ui-corner-br
 .ui-corner-top, .ui-corner-bottom, .ui-corner-right, .ui-corner-left,
 .ui-corner-all

- Overlay & Shadow
 .ui-widget-overlay
 .ui-widget-shadow




                                                 32
Explorer Jquery UI

                                       ThemeRoller



ThemeRoller is a web app that offers a fun
and intuitive interface for designing and
downloading custom themes for jQuery UI




                                             33
Explorer Jquery UI

                                    Theme Switcher Widget



<script>
 $(document).ready(function(){
  $('#switcher').themeswitcher();
 });
 </script>


<script type="text/javascript"
 src="http://jqueryui.com/themeroller/themeswitchertool/">
</script>
<div id="switcher"></div>



                                                    34
Jquery UI Compare with the other

Table of Javascript Frameworkst




 detail
 http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks



                                                     35
Jquery UI Compare with the other

Browser Support




 detail
 http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks



                                                     36
Jquery UI Compare with the other

Features




   http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks




                                                     37
Reference




            Jquery UI (O'Reilly Media)
            Jquery UI Themes (Adam Boduch)




                               38
Demo

More Related Content

What's hot (20)

PDF
JQuery UI
Gary Yeh
 
PPTX
jQuery from the very beginning
Anis Ahmad
 
PPTX
Redux training
dasersoft
 
PDF
Hunting for security bugs in AEM webapps
Mikhail Egorov
 
PDF
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
Edureka!
 
PPTX
react-slides.pptx
DayNightGaMiNg
 
PDF
React&redux
Blank Chen
 
PDF
Data Persistence in Android with Room Library
Reinvently
 
PPTX
Spring Web MVC
zeeshanhanif
 
PPTX
Local SQLite Database with Node for beginners
Laurence Svekis ✔
 
PDF
Page Object Model and Implementation in Selenium
Zoe Gilbert
 
PPT
jQuery
Mostafa Bayomi
 
PDF
JavaScript - Chapter 4 - Types and Statements
WebStackAcademy
 
PPTX
ReactJS
Ram Murat Sharma
 
PDF
An Introduction to ReactJS
All Things Open
 
PPT
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
 
PPTX
React render props
Saikat Samanta
 
PPTX
Dom(document object model)
Partnered Health
 
PDF
Angular - Chapter 3 - Components
WebStackAcademy
 
JQuery UI
Gary Yeh
 
jQuery from the very beginning
Anis Ahmad
 
Redux training
dasersoft
 
Hunting for security bugs in AEM webapps
Mikhail Egorov
 
jQuery Tutorial For Beginners | Developing User Interface (UI) Using jQuery |...
Edureka!
 
react-slides.pptx
DayNightGaMiNg
 
React&redux
Blank Chen
 
Data Persistence in Android with Room Library
Reinvently
 
Spring Web MVC
zeeshanhanif
 
Local SQLite Database with Node for beginners
Laurence Svekis ✔
 
Page Object Model and Implementation in Selenium
Zoe Gilbert
 
JavaScript - Chapter 4 - Types and Statements
WebStackAcademy
 
An Introduction to ReactJS
All Things Open
 
An Introduction to CSS Preprocessors (SASS & LESS)
Folio3 Software
 
React render props
Saikat Samanta
 
Dom(document object model)
Partnered Health
 
Angular - Chapter 3 - Components
WebStackAcademy
 

Similar to Jquery ui (20)

PDF
jQuery UI and Plugins
Marc Grabanski
 
PDF
jQuery (MeshU)
jeresig
 
PDF
Jquery Ui In Action 1st Edition Tj Vantoll
ringatsw
 
PDF
Web designing course in bangalore
Infocampus Logics Pvt.Ltd.
 
PPTX
jQuery Mobile Introduction ( demo on EZoapp )
EZoApp
 
PDF
jQuery (DrupalCamp Toronto)
jeresig
 
PDF
JQuery-Tutorial
tutorialsruby
 
PDF
jQuery-3-UI
guestcf600a
 
PDF
Microsoft PowerPoint - &lt;b>jQuery&lt;/b>-3-UI.pptx
tutorialsruby
 
PDF
jQuery-3-UI
guestcf600a
 
PDF
jQuery, A Designer's Perspective
Emily Lewis
 
PPTX
A to Z about JQuery - Become Newbie to Expert Java Developer
Manoj Bhuva
 
PDF
jQuery (BostonPHP)
jeresig
 
PDF
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
PDF
jQuery for beginners
Siva Arunachalam
 
PDF
Jquery In Action Second Edition 2nd Ed Bear Bibeault Yehuda Katz
aneilvoyce0a
 
PDF
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Sean Burgess
 
ODP
Jquery- One slide completing all JQuery
Knoldus Inc.
 
PPTX
jQuery Mobile
mowd8574
 
PDF
Write Less Do More
Remy Sharp
 
jQuery UI and Plugins
Marc Grabanski
 
jQuery (MeshU)
jeresig
 
Jquery Ui In Action 1st Edition Tj Vantoll
ringatsw
 
Web designing course in bangalore
Infocampus Logics Pvt.Ltd.
 
jQuery Mobile Introduction ( demo on EZoapp )
EZoApp
 
jQuery (DrupalCamp Toronto)
jeresig
 
JQuery-Tutorial
tutorialsruby
 
jQuery-3-UI
guestcf600a
 
Microsoft PowerPoint - &lt;b>jQuery&lt;/b>-3-UI.pptx
tutorialsruby
 
jQuery-3-UI
guestcf600a
 
jQuery, A Designer's Perspective
Emily Lewis
 
A to Z about JQuery - Become Newbie to Expert Java Developer
Manoj Bhuva
 
jQuery (BostonPHP)
jeresig
 
jQuery Loves Developers - Oredev 2009
Remy Sharp
 
jQuery for beginners
Siva Arunachalam
 
Jquery In Action Second Edition 2nd Ed Bear Bibeault Yehuda Katz
aneilvoyce0a
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Sean Burgess
 
Jquery- One slide completing all JQuery
Knoldus Inc.
 
jQuery Mobile
mowd8574
 
Write Less Do More
Remy Sharp
 
Ad

More from adm_exoplatform (14)

PPT
Magento
adm_exoplatform
 
ODP
E xo mobile_overview_best_practice_in_mobile_application_design
adm_exoplatform
 
PPT
Advance jquery-plugin
adm_exoplatform
 
PPT
Development withforce
adm_exoplatform
 
PPT
Hadoop
adm_exoplatform
 
PPT
Cmsms
adm_exoplatform
 
PPT
Jquery
adm_exoplatform
 
PPT
Java application server in the cloud
adm_exoplatform
 
PPT
Memory and runtime analysis
adm_exoplatform
 
PPT
Jvm mbeans jmxtran
adm_exoplatform
 
PPT
Git training
adm_exoplatform
 
PPT
Cluster mode and plf cluster
adm_exoplatform
 
PPT
Cluster mode and plf cluster
adm_exoplatform
 
E xo mobile_overview_best_practice_in_mobile_application_design
adm_exoplatform
 
Advance jquery-plugin
adm_exoplatform
 
Development withforce
adm_exoplatform
 
Java application server in the cloud
adm_exoplatform
 
Memory and runtime analysis
adm_exoplatform
 
Jvm mbeans jmxtran
adm_exoplatform
 
Git training
adm_exoplatform
 
Cluster mode and plf cluster
adm_exoplatform
 
Cluster mode and plf cluster
adm_exoplatform
 
Ad

Recently uploaded (15)

PDF
Blake and Mortimer 01 The Secret of the Swordfish
SuperDrive16
 
PPTX
Fun Friday for corporate virtual fridays
chandana94smiles
 
PPTX
Line Up Activity For Kids and Adult.....
cynthiamarasigan
 
PDF
Mommy J. At San Vicente Ward (Group 1)).pdf
MitsuriKanroji22
 
PPTX
Most Played Songs on YouTube 2025 Edition.pptx
Marco Wilson
 
PPTX
plantilla-animada-netflix-en-power-point.pptx
CarmenGarca710436
 
PPTX
beat and rhythm for school, mapeh 3 wisdom
MarkAnthonySarsua
 
PPTX
一比一原版(Newman毕业证)纽曼大学毕业证如何办理
Taqyea
 
PDF
How Modern Filmmakers Plan, Shoot, and Deliver Blockbuster Movies.pdf
All Writers Destination
 
PPT
chapter 10.pptkkkkkkkkkkkkkkkkkkkkkkkkkk
trishalasharma7
 
PDF
cyanean_Lab_Reportdfd dfdsfsdfsd f dsf.pdf
REYESTACZAEDGARALEJA
 
PPTX
Hunka Hunka Burnin’ Love Prototype Website 2013
Cheryl M
 
PPTX
ANKITA PPT FINAL.pptx....................
PriyalSharma25
 
PPTX
HARASSMENT IN WORKPLACE FOR DEEP KNOWLEDGE
ashishmalikp2426
 
PPT
How Bokep Indo Impacts Relationships and Social Norms in Indonesia
roohinxt
 
Blake and Mortimer 01 The Secret of the Swordfish
SuperDrive16
 
Fun Friday for corporate virtual fridays
chandana94smiles
 
Line Up Activity For Kids and Adult.....
cynthiamarasigan
 
Mommy J. At San Vicente Ward (Group 1)).pdf
MitsuriKanroji22
 
Most Played Songs on YouTube 2025 Edition.pptx
Marco Wilson
 
plantilla-animada-netflix-en-power-point.pptx
CarmenGarca710436
 
beat and rhythm for school, mapeh 3 wisdom
MarkAnthonySarsua
 
一比一原版(Newman毕业证)纽曼大学毕业证如何办理
Taqyea
 
How Modern Filmmakers Plan, Shoot, and Deliver Blockbuster Movies.pdf
All Writers Destination
 
chapter 10.pptkkkkkkkkkkkkkkkkkkkkkkkkkk
trishalasharma7
 
cyanean_Lab_Reportdfd dfdsfsdfsd f dsf.pdf
REYESTACZAEDGARALEJA
 
Hunka Hunka Burnin’ Love Prototype Website 2013
Cheryl M
 
ANKITA PPT FINAL.pptx....................
PriyalSharma25
 
HARASSMENT IN WORKPLACE FOR DEEP KNOWLEDGE
ashishmalikp2426
 
How Bokep Indo Impacts Relationships and Social Norms in Indonesia
roohinxt
 

Jquery ui

  • 1. Jquery UI Introduction Nguyen Thanh Trung - WD Team 07/12/2012
  • 2. Objective  What is jQuery UI?  Explorer JqueryUI  Jquery UI compare with the other (DOJO,YUI..)  Demo 2
  • 3. What is Jquery UI jQuery UI is a set of plug-ins for Jquery that add new functionalities to the Jquery core library 3
  • 4. What is Jquery UI History 4
  • 5. Explorer Jquery UI  Interactions  Widgets  Effects  Utilities  Theming 5
  • 6. Explorer Jquery UI Interactions  Draggable  Droppable  Resizable  Selectable  Sortable 6
  • 7. Explorer Jquery UI Draggable $(selector).draggable(option) <script> $(function() { $( "#draggable" ).draggable(); }); </script> <div class="demo"> <div id="draggable" class="ui-widget-content"> <p>Drag me around</p> </div> </div><!-- End demo --> 7
  • 8. Explorer Jquery UI Droppable $(selector).droppable(option) <script> $(function() { $( "#draggable" ).draggable(); $( "#droppable" ).droppable({ drop: function( event, ui ) { $( this ).addClass( "ui-state-highlight" ).find( "p" ).html( "Dropped!" ); } }); }); </script> <div class="demo"> <div id="draggable" class="ui-widget-content"> <p>Drag me to my target</p> </div> <div id="droppable" class="ui-widget-header"> <p>Drop here</p> </div> 8
  • 9. Explorer Jquery UI Resizable $(selector).resizable(option) <script> $(function() { $( "#resizable" ).resizable(); }); </script> <div class="demo"> <div id="resizable" class="ui-widget-content"> <h3 class="ui-widget-header">Resizable</h3> </div> </div><!-- End demo --> 9
  • 10. Explorer Jquery UI Selectable $(selector).selectable(option) <script> $(function() { $( "#selectable" ).selectable(); }); </script> <ol id="selectable"> <li class="ui-widget-content">Item 1</li> <li class="ui-widget-content">Item 2</li> <li class="ui-widget-content">Item 3</li> </ol> 10
  • 11. Explorer Jquery UI Sortable $(selector).sorttable(option) <script> $(function() { $( "#sortable" ).sortable(); $( "#sortable" ).disableSelection(); }); </script> <ul id="sortable"> <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 1</li> <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 2</li> <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 3</li> ….... <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span>Item 7</li> </ul> 11
  • 12. Explorer Jquery UI Widgets  Accordion  Autocomplete  Button  Datepicker  Dialog  Progressbar  Slider  Tabs 12
  • 13. Explorer Jquery UI Accordion <script> $(function() { $( "#accordion" ).accordion(); }); </script> <div id="accordion"> <h3><a href="#">Section 1</a></h3> <div> <p> Mauris mauris ante, blandit et, ultrices a, </p> </div> <h3><a href="#">Section 2</a></h3> <div> <p> Sed non urna. Donec et ante. Phasellus eu ligula. </p> </div> </div> 13
  • 14. Explorer Jquery UI Autocomplete <script> $(function() { var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", ….., "Scheme" ]; $( "#tags" ).autocomplete({ source: availableTags }); }); </script> <div class="ui-widget"> <label for="tags">Tags: </label> <input id="tags"> </div> 14
  • 15. Explorer Jquery UI Buttons <script> $(function() { $( "input:submit, a, button").button(); $( "a", ".demo" ).click(function() { return false; }); }); </script> <button>A button element</button> <input value="A submit button" type="submit"> <a href="#">An anchor</a> 15
  • 16. Explorer Jquery UI Datepicker <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> <div class="demo"> <p>Date: <input id="datepicker" type="text"></p> </div><!-- End demo --> 16
  • 17. Explorer Jquery UI dialog <script> $(function() { $( "#dialog" ).dialog(); }); </script> <div id="dialog" title="Basic dialog"> <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p> </div> 17
  • 18. Explorer Jquery UI Progressbar <script> $(function() { $( "#progressbar" ).progressbar({ value: 37 }); }); </script> <div id="progressbar"></div> 18
  • 19. Explorer Jquery UI Slider <script> $(function() { $( "#slider" ).slider(); }); </script> <div id="slider"></div> 19
  • 20. Explorer Jquery UI Tabs <script> $(function() { $( "#tabs" ).tabs(); }); </script> <div id="tabs"> <ul> <li><a href="#tabs-1">Nunc tincidunt</a></li> <li><a href="#tabs-2">Proin dolor</a></li> </ul> <div id="tabs-1"> <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. </p> </div> <div id="tabs-2"> <p>Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. </p> </div> </div> 20
  • 21. Explorer Jquery UI Effects  Color Animation  Toggle Class  Add Class  Remove Class  Switch Class  Effect  Toggle  Hide  Show 21
  • 22. Explorer Jquery UI Effects ToggleClass : toggleClass( class, [duration] ) Add Class : addClass( class, [duration] ) RemoveClass: removeClass( [class], [duration] ) SwitchClass : switchClass( remove, add, [duration] ) Effect : effect( effect, [options], [speed], [callback] ) Toggle : toggle( effect, [options], [speed], [callback] ) Hide: hide( effect, [options], [speed], [callback] ) Show : show( effect, [options], [speed], [callback] ) 22
  • 23. Explorer Jquery UI Utilities  Position  Widget 23
  • 24. Explorer Jquery UI Theming  Theming jQuery UI  jQuery UI CSS Framework  ThemeRoller application  Theme Switcher Widget 24
  • 25. Explorer Jquery UI Theming Jquery UI There are three general approaches to theming jQuery UI plugins: - Download a ThemeRoller theme - Modify the CSS files - Write completely custom CSS 25
  • 26. Explorer Jquery UI Jquery UI CSS Framework Layout Helpers Widget Containers Interaction States Interaction Cues Icons Misc Visuals 26
  • 27. Explorer Jquery UI Layout Helpers .ui-helper-hidden .ui-helper-hidden-accessible .ui-helper-reset .ui-helper-clearfix .ui-helper-zfix 27
  • 28. Explorer Jquery UI Widget Containers .ui-widget .ui-widget-header .ui-widget-content 28
  • 29. Explorer Jquery UI Interaction States .ui-state-default .ui-state-hover .ui-state-focus .ui-state-active 29
  • 30. Explorer Jquery UI Interaction Cues .ui-state-highlight .ui-state-error .ui-state-error-text .ui-state-disabled .ui-priority-primary .ui-priority-secondary 30
  • 31. Explorer Jquery UI Icons - States and images .ui-icon - Icon types .ui-icon-{icon type}-{icon sub description}-{direction}. Example : ui-icon-circle-triangle-e ui-icon-circle-triangle-s ui-icon-circle-triangle-w ui-icon-circle-triangle-n 31
  • 32. Explorer Jquery UI Misc Visuals - Corner Radius helpers .ui-corner-tl, .ui-corner-tr, .ui-corner-bl, .ui-corner-br .ui-corner-top, .ui-corner-bottom, .ui-corner-right, .ui-corner-left, .ui-corner-all - Overlay & Shadow .ui-widget-overlay .ui-widget-shadow 32
  • 33. Explorer Jquery UI ThemeRoller ThemeRoller is a web app that offers a fun and intuitive interface for designing and downloading custom themes for jQuery UI 33
  • 34. Explorer Jquery UI Theme Switcher Widget <script> $(document).ready(function(){ $('#switcher').themeswitcher(); }); </script> <script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"> </script> <div id="switcher"></div> 34
  • 35. Jquery UI Compare with the other Table of Javascript Frameworkst detail http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks 35
  • 36. Jquery UI Compare with the other Browser Support detail http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks 36
  • 37. Jquery UI Compare with the other Features http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks#Table_of_Javascript_Frameworks 37
  • 38. Reference Jquery UI (O'Reilly Media) Jquery UI Themes (Adam Boduch) 38
  • 39. Demo