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
Ad

More Related Content

What's hot (20)

Maxscale_메뉴얼
Maxscale_메뉴얼Maxscale_메뉴얼
Maxscale_메뉴얼
NeoClova
 
MySQL Slow Query log Monitoring using Beats & ELK
MySQL Slow Query log Monitoring using Beats & ELKMySQL Slow Query log Monitoring using Beats & ELK
MySQL Slow Query log Monitoring using Beats & ELK
YoungHeon (Roy) Kim
 
MySQL GTID 시작하기
MySQL GTID 시작하기MySQL GTID 시작하기
MySQL GTID 시작하기
I Goo Lee
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
manugoel2003
 
jQuery
jQueryjQuery
jQuery
Mostafa Bayomi
 
Css box-model
Css box-modelCss box-model
Css box-model
Webtech Learning
 
Angular Observables & RxJS Introduction
Angular Observables & RxJS IntroductionAngular Observables & RxJS Introduction
Angular Observables & RxJS Introduction
Rahat Khanna a.k.a mAppMechanic
 
Introduction to PostgreSQL
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
Jim Mlodgenski
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
[오픈소스컨설팅] 스카우터 사용자 가이드 2020
[오픈소스컨설팅] 스카우터 사용자 가이드 2020[오픈소스컨설팅] 스카우터 사용자 가이드 2020
[오픈소스컨설팅] 스카우터 사용자 가이드 2020
Ji-Woong Choi
 
Getting started with Redux js
Getting started with Redux jsGetting started with Redux js
Getting started with Redux js
Citrix
 
Performance Analysis: The USE Method
Performance Analysis: The USE MethodPerformance Analysis: The USE Method
Performance Analysis: The USE Method
Brendan Gregg
 
Hibernate presentation
Hibernate presentationHibernate presentation
Hibernate presentation
Manav Prasad
 
The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!
Baharika Sopori
 
Git hooks
Git hooksGit hooks
Git hooks
Skills Matter
 
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてくださいレガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
Isamu Suzuki
 
Bootstrap Components Quick Overview
Bootstrap Components Quick OverviewBootstrap Components Quick Overview
Bootstrap Components Quick Overview
Perumal N K
 
MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼
NeoClova
 
React JS - Introduction
React JS - IntroductionReact JS - Introduction
React JS - Introduction
Sergey Romaneko
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
NodeXperts
 
Maxscale_메뉴얼
Maxscale_메뉴얼Maxscale_메뉴얼
Maxscale_메뉴얼
NeoClova
 
MySQL Slow Query log Monitoring using Beats & ELK
MySQL Slow Query log Monitoring using Beats & ELKMySQL Slow Query log Monitoring using Beats & ELK
MySQL Slow Query log Monitoring using Beats & ELK
YoungHeon (Roy) Kim
 
MySQL GTID 시작하기
MySQL GTID 시작하기MySQL GTID 시작하기
MySQL GTID 시작하기
I Goo Lee
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
manugoel2003
 
Introduction to PostgreSQL
Introduction to PostgreSQLIntroduction to PostgreSQL
Introduction to PostgreSQL
Jim Mlodgenski
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
[오픈소스컨설팅] 스카우터 사용자 가이드 2020
[오픈소스컨설팅] 스카우터 사용자 가이드 2020[오픈소스컨설팅] 스카우터 사용자 가이드 2020
[오픈소스컨설팅] 스카우터 사용자 가이드 2020
Ji-Woong Choi
 
Getting started with Redux js
Getting started with Redux jsGetting started with Redux js
Getting started with Redux js
Citrix
 
Performance Analysis: The USE Method
Performance Analysis: The USE MethodPerformance Analysis: The USE Method
Performance Analysis: The USE Method
Brendan Gregg
 
Hibernate presentation
Hibernate presentationHibernate presentation
Hibernate presentation
Manav Prasad
 
The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!The Benefits of Using React JS for Web Development!
The Benefits of Using React JS for Web Development!
Baharika Sopori
 
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてくださいレガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
レガシーなアプリにWeb apiを実装してなみだ目になったのでちょっといろいろ教えてください
Isamu Suzuki
 
Bootstrap Components Quick Overview
Bootstrap Components Quick OverviewBootstrap Components Quick Overview
Bootstrap Components Quick Overview
Perumal N K
 
MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼MariaDB MaxScale monitor 매뉴얼
MariaDB MaxScale monitor 매뉴얼
NeoClova
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
NodeXperts
 

Similar to Jquery ui (20)

jQuery UI and Plugins
jQuery UI and PluginsjQuery UI and Plugins
jQuery UI and Plugins
Marc Grabanski
 
J queryui
J queryuiJ queryui
J queryui
Inbal Geffen
 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
Muhammad Ehtisham Siddiqui
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1
Sebastian Pożoga
 
Kick start with j query
Kick start with j queryKick start with j query
Kick start with j query
Md. Ziaul Haq
 
webstudy jquery
webstudy jquerywebstudy jquery
webstudy jquery
Seungho Han
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
Overlays, Accordions & Tabs, Oh My
Overlays, Accordions & Tabs, Oh MyOverlays, Accordions & Tabs, Oh My
Overlays, Accordions & Tabs, Oh My
Steve McMahon
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
Collaboration Technologies
 
jQuery Fundamentals
jQuery FundamentalsjQuery Fundamentals
jQuery Fundamentals
Gil Fink
 
Jquery
JqueryJquery
Jquery
baabtra.com - No. 1 supplier of quality freshers
 
A Rich Web Experience with jQuery, Ajax and .NET
A Rich Web Experience with jQuery, Ajax and .NETA Rich Web Experience with jQuery, Ajax and .NET
A Rich Web Experience with jQuery, Ajax and .NET
James Johnson
 
Jquery
JqueryJquery
Jquery
PaRa Vaishnav
 
J query training
J query trainingJ query training
J query training
FIS - Fidelity Information Services
 
Building iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" DominoBuilding iPhone Web Apps using "classic" Domino
Building iPhone Web Apps using "classic" Domino
Rob Bontekoe
 
ChocolateChip-UI
ChocolateChip-UIChocolateChip-UI
ChocolateChip-UI
GeorgeIshak
 
Y hack-china-2013
Y hack-china-2013Y hack-china-2013
Y hack-china-2013
Syu-jhih Wu
 
Android development with Scala and SBT
Android development with Scala and SBTAndroid development with Scala and SBT
Android development with Scala and SBT
Anton Yalyshev
 
jQuery quick tuts
jQuery quick tutsjQuery quick tuts
jQuery quick tuts
Nasa Vietnam
 
Mume JQueryMobile Intro
Mume JQueryMobile IntroMume JQueryMobile Intro
Mume JQueryMobile Intro
Gonzalo Parra
 
Ad

More from adm_exoplatform (14)

Magento
MagentoMagento
Magento
adm_exoplatform
 
E xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_designE xo mobile_overview_best_practice_in_mobile_application_design
E xo mobile_overview_best_practice_in_mobile_application_design
adm_exoplatform
 
Advance jquery-plugin
Advance jquery-pluginAdvance jquery-plugin
Advance jquery-plugin
adm_exoplatform
 
Development withforce
Development withforceDevelopment withforce
Development withforce
adm_exoplatform
 
Hadoop
HadoopHadoop
Hadoop
adm_exoplatform
 
Cmsms
CmsmsCmsms
Cmsms
adm_exoplatform
 
Jquery
JqueryJquery
Jquery
adm_exoplatform
 
Java application server in the cloud
Java application server in the cloudJava application server in the cloud
Java application server in the cloud
adm_exoplatform
 
I os
I osI os
I os
adm_exoplatform
 
Memory and runtime analysis
Memory and runtime analysisMemory and runtime analysis
Memory and runtime analysis
adm_exoplatform
 
Jvm mbeans jmxtran
Jvm mbeans jmxtranJvm mbeans jmxtran
Jvm mbeans jmxtran
adm_exoplatform
 
Git training
Git trainingGit training
Git training
adm_exoplatform
 
Cluster mode and plf cluster
Cluster mode and plf clusterCluster mode and plf cluster
Cluster mode and plf cluster
adm_exoplatform
 
Cluster mode and plf cluster
Cluster mode and plf clusterCluster mode and plf cluster
Cluster mode and plf cluster
adm_exoplatform
 
Ad

Recently uploaded (14)

music website planning presentation.pptx
music website planning presentation.pptxmusic website planning presentation.pptx
music website planning presentation.pptx
LukeNash7
 
Whiskey&wonderlust by Tara Hersh Kip Moores next ablum title
Whiskey&wonderlust by  Tara Hersh Kip Moores next ablum titleWhiskey&wonderlust by  Tara Hersh Kip Moores next ablum title
Whiskey&wonderlust by Tara Hersh Kip Moores next ablum title
hershtara1
 
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbjW4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
worryno71
 
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptxGenotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Mayuri Chavan
 
Hutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Hutch: A Tragic Scottish Love Story, must read by Steven R. KaineHutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Hutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Steven R Kaine
 
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
Enzo Zelocchi Fan Page
 
E VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
E VOTING intro_merged E VOTING intro_merged E VOTING intro_mergedE VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
E VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
spub1985
 
Alina Li_ From Adult Stardom to a Legacy That Endures.pdf
Alina Li_ From Adult Stardom to a Legacy That Endures.pdfAlina Li_ From Adult Stardom to a Legacy That Endures.pdf
Alina Li_ From Adult Stardom to a Legacy That Endures.pdf
Psshunt
 
Benny the Hero 20 Written By Basak Serin
Benny the Hero 20 Written By Basak SerinBenny the Hero 20 Written By Basak Serin
Benny the Hero 20 Written By Basak Serin
Basak24
 
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
omersaeed38
 
"Creating Your Perfect Wedding Day Together"
"Creating Your Perfect Wedding Day Together""Creating Your Perfect Wedding Day Together"
"Creating Your Perfect Wedding Day Together"
inquirymail6
 
ASAP Rocky Life Biography The Celeb Post
ASAP Rocky Life Biography The Celeb PostASAP Rocky Life Biography The Celeb Post
ASAP Rocky Life Biography The Celeb Post
Lionapk
 
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
Taqyea
 
Ryan Reynolds Life Biography The Celeb Post
Ryan Reynolds Life Biography The Celeb PostRyan Reynolds Life Biography The Celeb Post
Ryan Reynolds Life Biography The Celeb Post
Lionapk
 
music website planning presentation.pptx
music website planning presentation.pptxmusic website planning presentation.pptx
music website planning presentation.pptx
LukeNash7
 
Whiskey&wonderlust by Tara Hersh Kip Moores next ablum title
Whiskey&wonderlust by  Tara Hersh Kip Moores next ablum titleWhiskey&wonderlust by  Tara Hersh Kip Moores next ablum title
Whiskey&wonderlust by Tara Hersh Kip Moores next ablum title
hershtara1
 
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbjW4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
W4 (2).pptx kdbkjjkdbkbdkbkdbkbdkjjhbjbjkbj
worryno71
 
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptxGenotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Genotoxicity & Mutagenicity Pharmacology 3unit 5.pptx
Mayuri Chavan
 
Hutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Hutch: A Tragic Scottish Love Story, must read by Steven R. KaineHutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Hutch: A Tragic Scottish Love Story, must read by Steven R. Kaine
Steven R Kaine
 
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
What Happens When a Filmmaker Thinks Like a Founder The Radical Playbook of E...
Enzo Zelocchi Fan Page
 
E VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
E VOTING intro_merged E VOTING intro_merged E VOTING intro_mergedE VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
E VOTING intro_merged E VOTING intro_merged E VOTING intro_merged
spub1985
 
Alina Li_ From Adult Stardom to a Legacy That Endures.pdf
Alina Li_ From Adult Stardom to a Legacy That Endures.pdfAlina Li_ From Adult Stardom to a Legacy That Endures.pdf
Alina Li_ From Adult Stardom to a Legacy That Endures.pdf
Psshunt
 
Benny the Hero 20 Written By Basak Serin
Benny the Hero 20 Written By Basak SerinBenny the Hero 20 Written By Basak Serin
Benny the Hero 20 Written By Basak Serin
Basak24
 
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
2cbc9a4306bf3aeryywy2ba87fa95f65e7daed.pdf
omersaeed38
 
"Creating Your Perfect Wedding Day Together"
"Creating Your Perfect Wedding Day Together""Creating Your Perfect Wedding Day Together"
"Creating Your Perfect Wedding Day Together"
inquirymail6
 
ASAP Rocky Life Biography The Celeb Post
ASAP Rocky Life Biography The Celeb PostASAP Rocky Life Biography The Celeb Post
ASAP Rocky Life Biography The Celeb Post
Lionapk
 
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
最新版澳洲拉筹伯大学毕业证(LTU毕业证书)原版定制
Taqyea
 
Ryan Reynolds Life Biography The Celeb Post
Ryan Reynolds Life Biography The Celeb PostRyan Reynolds Life Biography The Celeb Post
Ryan Reynolds Life Biography The Celeb Post
Lionapk
 

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