Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • jQuery Mobile
  • jQuery jQwidget
  • jQuery EasyUI
  • jQuery UI
  • jQuery
  • JavaScript
  • Web Technology
Open In App
Next Article:
How to design calendar for web page using jQuery EasyUI ?
Next article icon

How to design tabs and pills using jQuery EasyUI Mobile ?

Last Updated : 17 Dec, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report

In this article, we will learn how to design tabs and pills using the jQuery EasyUI Mobile plugin.  Pills are basically the tabs that are in the form of dropdown menus.

EasyUI is an HTML5 framework for using user interface components based on jQuery, React, Angular, and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers.

Downloads for EasyUI for jQuery: 

https://www.jeasyui.com/download/index.php

Example 1: The following demonstrates the basic tabs using jQuery EasyUI Mobile plugin.

html
<!DOCTYPE html> <html>  <head>     <meta charset="UTF-8">     <meta name="viewport" content=         "initial-scale=1.0, maximum-scale=1.0,          user-scalable=no">      <!-- EasyUI specific stylesheets-->     <link rel="stylesheet" type="text/css"          href="themes/metro/easyui.css">      <link rel="stylesheet" type="text/css"          href="themes/mobile.css">      <link rel="stylesheet" type="text/css"          href="themes/icon.css">      <!--jQuery library -->     <script type="text/javascript"          src="jquery.min.js">     </script>      <!--jQuery libraries of EasyUI  -->     <script type="text/javascript"          src="jquery.easyui.min.js">     </script>      <!--jQuery libraries of EasyUI Mobile-->     <script type="text/javascript"          src="jquery.easyui.mobile.js">     </script>      <style>         p {             line-height: 150%;         }     </style> </head>  <body>     <div class="easyui-tabs"          data-options="fit:true, border:false,                     tabWidth:80,tabHeight:35">         <div title="HTML" style="padding:10px">              <p>H                 TML stands for HyperText Markup                  Language. It is used to design                  web pages using a markup language.                 HTML is the combination of Hypertext                 and Markup language. Hypertext                  defines the link between the web                  pages. A markup language is used                  to define the text document within                  tag which defines the structure of                  web pages.             </p>          </div>          <div title="PHP" style="padding:10px">              <p>                 The term PHP is an acronym for PHP:                 Hypertext Preprocessor. PHP is a                  server-side scripting language                  designed specifically for web                  development. PHP can be easily                  embedded in HTML files and HTML                  codes can also be written in a                  PHP file. The thing that                  differentiates PHP with client-side                  language like HTML is, PHP codes                  are executed on the server whereas                 HTML codes are directly rendered                  on the browser.             </p>          </div>          <div title="CSS" style="padding:10px">              <p>                 Cascading Style Sheets, fondly referred                  to as CSS, is a simply designed language                  intended to simplify the process of                  making web pages presentable. CSS allows                  you to apply styles to web pages. More                  importantly, CSS enables you to do this                 independent of the HTML that makes up                  each web page.             </p>          </div>     </div> </body>  </html> 

Output: 
 

  • Simple tabs: 
     
  • Tabs execution: 
     


 

Example 2: The following code demonstrates the navigation of the tabs using various classes of the jQuery EasyUI Mobile plugin.

html
<!doctype html> <html>  <head>     <meta charset="UTF-8">     <meta name="viewport" content=          "initial-scale=1.0, maximum-scale=1.0,         user-scalable=no">      <!-- EasyUI specific stylesheets-->     <link rel="stylesheet" type="text/css"          href="themes/metro/easyui.css">      <link rel="stylesheet" type="text/css"          href="themes/mobile.css">      <link rel="stylesheet" type="text/css"          href="themes/icon.css">      <!--jQuery library -->     <script type="text/javascript"          src="jquery.min.js">     </script>      <!--jQuery library of EasyUI  -->     <script type="text/javascript"          src="jquery.easyui.min.js">     </script>      <!--jQuery library of EasyUI Mobile-->     <script type="text/javascript"          src="jquery.easyui.mobile.js">     </script>     <style>         .tab-title {             display: inline-block;             line-height: 12px;             padding-top: 5px;         }          p {             line-height: 150%;         }     </style> </head>  <body>     <!--'easyui-navpanel' class is used-->     <div class="easyui-navpanel">         <header>             <div class="m-toolbar">                 <div class="m-title">                     Technology                 </div>             </div>         </header>          <!--'easyui-tabs' class is used-->         <div class="easyui-tabs"              data-options="tabHeight:60,                  fit:true,tabPosition:'bottom',                  border:false,pill:true,                  narrow:true,justified:true">              <div style="padding:10px">                 <div class="panel-header tab-title">                     <img src='images/htmlImage.png' />                     <br>HTML                 </div>                  <p>                     HTML stands for HyperText Markup                      Language. It is used to design                      web pages using a markup language.                     HTML is the combination of                      Hypertext and Markup language.                 </p>              </div>              <div style="padding:10px">                 <!--'panel-header' class is used-->                 <div class="panel-header tab-title">                     <img src='images/phpImage.png' />                     <br>PHP                 </div>                  <p>                     The term PHP is an acronym for                      PHP: Hypertext Preprocessor. PHP                      is a server-side scripting language                      designed specifically for web                      development. PHP can be easily                      embedded in HTML files and HTML                      codes can also be written in a                      PHP file.                 </p>              </div>              <div style="padding:10px">                 <div class="panel-header tab-title">                     <img src='images/cssImage.png' />                     <br>CSS                 </div>                  <p>                     Cascading Style Sheets, fondly                      referred to as CSS, is a simply                      designed language intended to                      simplify the process of making                      web pages presentable. CSS allows                      you to apply styles to web pages.                 </p>              </div>              <div style="padding:10px">                 <div class="panel-header tab-title">                     <img src='images/python.png' />                     <br>Python                 </div>                   <p>                     Python is a high-level, general                     -purpose and a very popular                      programming language.                 </p>                                    <p>                     Python programming language (latest                      Python 3) is being used in web                      development, Machine Learning                      applications, along with all cutting                      edge technology in Software Industry.                 </p>              </div>         </div>     </div> </body>  </html> 

Output: 


 


 

Example 3: The following example demonstrates pills which are like dropdown menus using the above mentioned plugin.

html
<!doctype html> <html>  <head>     <meta charset="UTF-8">     <meta name="viewport" content=         "initial-scale=1.0, maximum-scale=1.0,         user-scalable=no">      <!-- EasyUI specific stylesheets-->     <link rel="stylesheet" type="text/css"          href="themes/metro/easyui.css">      <link rel="stylesheet" type="text/css"          href="themes/mobile.css">      <link rel="stylesheet" type="text/css"         href="themes/icon.css">      <!--jQuery library -->     <script type="text/javascript"          src="jquery.min.js">     </script>      <!--jQuery library of EasyUI  -->     <script type="text/javascript"          src="jquery.easyui.min.js">     </script>      <!--jQuery library of EasyUI Mobile-->     <script type="text/javascript"          src="jquery.easyui.mobile.js">     </script>      <style>         p {             line-height: 150%;         }     </style> </head>  <body>     <!--'easyui-tabs' class is used-->     <div class="easyui-tabs"          data-options="fit: true,             border: false, pill: true,             justified: true, tabWidth: 80,             tabHeight: 35">         <div title="HTML" style="padding:10px">              <p>                  HTML stands for HyperText Markup                  Language. It is used to design                  web pages using a markup language.                 HTML is the combination of                  Hypertext and Markup language.             </p>          </div>          <div title="CSS" style="padding:10px">              <p>                 Cascading Style Sheets, fondly                  referred to as CSS, is a simply                  designed language intended to                  simplify the process of making                  web pages presentable. CSS allows                  you to apply styles to web pages.             </p>          </div>          <div title="PHP" style="padding:10px">              <p>                 The term PHP is an acronym for PHP:                  Hypertext Preprocessor. PHP is a                  server-side scripting language                  designed specifically for web                  development. PHP can be easily                  embedded in HTML files and HTML                  codes can also be written in a PHP                  file.             </p>          </div>     </div> </body>  </html> 

Output: 


Next Article
How to design calendar for web page using jQuery EasyUI ?

G

geetanjali16
Improve
Article Tags :
  • Web Technologies
  • HTML
  • CSS
  • JQuery
  • jQuery-Mobile

Similar Reads

  • How to design accordion using jQuery EasyUI Mobile ?
    EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. Accordions are HTML contents that toggle between showing and hiding. Do
    3 min read
  • How to design menu using jQuery EasyUI Mobile ?
    In this article, we will learn how to design menu list using jQuery EasyUI Mobile plugin. EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of ti
    2 min read
  • How to design buttons for mobiles using jQuery EasyUI Mobile?
    EasyUI is an HTML5 framework for using user interface components based on jQuery, React, Angular, and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. In this article, we will learn to design various button styles for th
    4 min read
  • How to design login dialog using jQuery EasyUI Mobile ?
    EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. In this article, we will learn to design login dialog and message dialo
    3 min read
  • How to design calendar for web page using jQuery EasyUI ?
    EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. In this article, we will learn how to design a calendar feature for our
    2 min read
  • How to design tree structure for files using jQuery EasyUI Mobile ?
    EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and, Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. It helps in building features for interactive web and mobile applicati
    2 min read
  • How to design navigation panel with ajax loading using jQuery EasyUI Mobile ?
    In this article, we will learn how to design navigation panel with ajax loading using jQuery EasyUI Mobile plugin. EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applic
    3 min read
  • How to design combogrids using jQuery EasyUI ?
    EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and mobile applications saving a lot of time for developers. In this article, we will learn how to design combogrids. Combogrids are
    3 min read
  • How to create lists and links using jQuery EasyUI Mobile ?
    In this article we will learn how to design lists, group them and create links for easy navigation using jQuery EasyUI Mobile. EasyUI is a HTML5 framework for using user interface components based on jQuery, React, Angular and Vue technologies. It helps in building features for interactive web and m
    4 min read
  • How to make Basic accordion using jQuery Mobile ?
    In this article, we will be making a basic accordion using jQuery Mobile. Approach: First, add the jQuery Mobile scripts needed for your project. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqu
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences