Book Image

Mastering Ext JS

By : Loiane Groner
Book Image

Mastering Ext JS

By: Loiane Groner

Overview of this book

<p>Ext JS 4 is a JavaScript framework that provides you with the resources to build multi-browser, high-performance, and rich Internet applications.<br /><br />Mastering Ext JS is a practical, hands-on guide that will teach you how to develop a complete application with Ext JS. You’ll begin by learning how to create the project’s structure and login screen before mastering advanced level features such as dynamic menus and master-detail grids, before finally preparing the application for production.<br /><br />Mastering Ext JS will help you to utilize Ext JS to its full potential and will show you how to create a complete Ext JS application from the scratch, as well as explaining how to create a Wordpress theme.</p> <p><br />You will learn how to create user and group security, master-detail grids and forms, charts, trees, and how to export data to excel including PDF and images, always focusing on best practices.</p> <p><br />You will also learn how to customize themes and how to prepare the application to be ready for deployment upon completion. Each chapter of the book is focused on one task and helps you understand and master an individual aspect of the application.</p> <p><br />By the end of the book, you will have learned everything you need to know to truly master Ext JS and to start building advanced applications.</p>
Table of Contents (20 chapters)
Mastering Ext JS
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Building the Sidebar


The next step is to create the Sidebar. We have already added its call in the code (in the footer.php file), now we need to implement some code inside the sidebar.php file. Let's go step by step.

First, we will add a div with the sidebar ID as follows:

<div id="sidebar" style="display:none;">
<!-- #1 -->
</div>

Note that the div in the preceding code has style="display:none;". Again, we will do some DOM manipulation so that we can display its children inside Ext JS components. Inside #1, which is inside the div, we will add some other divs, each one representing a widget on the Sidebar.

The first widget we will add to the Sidebar is the Categories list with their respective post count:

<div id="categoriesCont">  
  <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
  </ul>
</div>

Note

The wp_list_cats function is a WordPress function that will retrieve the list of categories for us. To learn...