Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery EasyUI Layout - Creating a Border Layout for a Web Page

jQuery EasyUI Layout - Creating a Border Layout for a Web Page

A border layout provides five regions: east, west, north, south, and center. Here are some common uses:

To apply a layout, you should designate a layout container and then define some regions. A layout must have at least one center region. The following is a layout example:



    
        
            

Select language:

            
                    
  • Java
  •                 
  • C#
  •                 
  • VB
  •                 
  • Erlang
  •             
        
        
        
    

We create a border layout in a

container; the layout splits the container into two parts, with the navigation menu on the left and the main content on the right.

Finally, we write an onclick event handler to retrieve data; the 'showcontent' function is very simple:



    function showcontent(language){

        $('#content').html('Introduction to ' + language + ' language');

    }

Download the jQuery EasyUI example

jeasyui-layout-layout.zip